[gdal-dev] ogr2ogr -wrapdateline not working

Flo Ledermann ledermann at ims.tuwien.ac.at
Fri May 27 05:18:24 EDT 2011


Hi all,

I want to use the -wrapdateline on a very simple shape file, containing
only a single polygon (as a start and test case)

However, I cannot get it working. Running the following on the attached
shapefile:

$ ogr2ogr -wrapdateline -overwrite polygon_spanning_dateline_wrapped.shp
polygon_spanning_dateline.shp


should - as far as I understand - result in a shapefile with the
original polygon clipped at -180°, and a second polygon (the clipped
part) to the far east ending at +180°.

Instead I get the identical, unclipped polygon as in the input file.
What am I doing wrong?

Best,

Flo

-------------- next part --------------
A non-text attachment was scrubbed...
Name: polygon_spanning_dateline.dbf
Type: application/x-dbf
Size: 146 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20110527/5c47f879/polygon_spanning_dateline-0003.bin
-------------- next part --------------
GEOGCS["GCS_WGS_1984",DATUM["D_unknown",SPHEROID["WGS84",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
-------------- next part --------------
GEOGCS["WGS 84",DATUM["unknown",SPHEROID["WGS84",6378137,298.257223563],TOWGS84[0,0,0,0,0,0,0]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]]

-------------- next part --------------
A non-text attachment was scrubbed...
Name: polygon_spanning_dateline.shp
Type: application/x-esri-shape
Size: 236 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20110527/5c47f879/polygon_spanning_dateline-0004.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: polygon_spanning_dateline.shx
Type: application/x-esri-shape
Size: 108 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20110527/5c47f879/polygon_spanning_dateline-0005.bin


More information about the gdal-dev mailing list