[OSM-dev] Mapnik: Data format in world_boundaries.tar.bz2 ?

Hakan Tandogan hakan at gurkensalat.com
Thu Nov 29 13:49:19 GMT 2007


On Thu, November 29, 2007 14:35, Martijn van Oosterhout wrote:
> On Nov 29, 2007 2:06 PM, Hakan Tandogan <hakan at gurkensalat.com> wrote:
>
>> I fetched the Mapnik world_boundaries because it seems to contain a few
>>  national boundaries which are not contained in the WDB archives.
>>
>> I can open the shape files just fine, but I don't know what units the
>> points are in, the coordinates are quite large, and I don't want to
>> guess...
>
> Hrm, did it not come with a .prj with some text in it, that how the
> projection information is usually conveyed.

Ah, o.k., there is a .prj next to it...

PROJCS
[
 "Mercator",
 GEOGCS["GCS_WGS_1984",
 DATUM["D_WGS_1984",
 SPHEROID["WGS_1984",6378137,298.257223563]],
 PRIMEM["Greenwich",0],
 UNIT["Degree",0.017453292519943295]],
 PROJECTION["Mercator"],
 PARAMETER["standard_parallel_1",0],
 PARAMETER["central_meridian",0],
 PARAMETER["scale_factor",1],
 PARAMETER["false_easting",0],
 PARAMETER["false_northing",0],
 UNIT["Meter",1]
]

This was all on one line, I reformatted it a little bit.

>> Point Point(X=-19948430.3286263,Y=11572187.9256366)

Any idea or pointers how I can transform those points into lat/lon
coordinates? A perl library would be perfect ;-)


Regards,
Hakan

-- 
The key to immortality is first living a life worth remembering...






More information about the dev mailing list