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

Attachment: polygon_spanning_dateline.dbf
Description: application/dbf

GEOGCS["GCS_WGS_1984",DATUM["D_unknown",SPHEROID["WGS84",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
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]]

Attachment: polygon_spanning_dateline.shp
Description: application/esri-shape

Attachment: polygon_spanning_dateline.shx
Description: application/esri-shape

_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to