[gdal-dev] Problem projection world shapefile from EPSG:4326 to EPSG:900913

Stephen Woodbridge woodbri at swoodbridge.com
Fri Apr 10 19:29:39 EDT 2009


Hi all,

I have a world shapefile and when I project it from EPSG:4326 to 
EPSG:900913 I get strange lines wrapping around east-west wise.

ogr2ogr -t_srs EPSG:900913 -s_srs EPSG:4326 . ../world/world-fixed.shp

I have attached the image.

Unprojected extents:

$ shpdump world-fixed.shp | head -4
Shapefile Type: Polygon   # of Shapes: 270

File Bounds: (    -180.000,     -59.487,0,0)
          to  (     180.000,      83.633,0,0)

Projected extents:

$ shpdump world-fixed.shp | head -4
Shapefile Type: Polygon   # of Shapes: 270

File Bounds: (-20037465.485,-8286424.371,0,0)
          to  (20037506.673,18428201.547,0,0)

Any thoughts on this?
How can I fix it?

Thanks,
   -Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: world.png
Type: image/png
Size: 18889 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20090410/5f34dad4/world.png


More information about the gdal-dev mailing list