Hi, 

Is there any way to access the wrap dateline capabilities of OGR from the 
Python interface? For example how to split the following polygon:

from osgeo import ogr, osr
srs = osr.SpatialReference()
srs.ImportFromEPSG(4326)
p = ogr.CreateGeometryFromWkt('POLYGON ((160 1, -160 1, -160 -1, 160 -1, 160 
1))')


Looking at the OGRGeometryFactory  source I see :
static void CutGeometryOnDateLineAndAddToMulti(OGRGeometryCollection* poMulti,
                                               const OGRGeometry* poGeom,
                                               double dfDateLineOffset)

but I can't see how to access it from Python. Would it be via an option to the 
ogr.CreateGeometryFromWkt?

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

Reply via email to