I'm querying an ArcGIS service obtain polygon data, however the service seems to define Island multi-polygons objects as single polygons with multiple exterior rings. This creates invalid OGC geometries and is causing processing problems in my workflow.
He's the service and a validation test showing the polygon is not valid: ogrinfo -dialect sqlite -sql "SELECT TA2013_V1_00_NAME, ST_IsValid(GEOMETRY) FROM OGRGeoJSON" http://maps.stats.govt.nz/wss/service/arcgis1/guest/Boundaries/2013_Geographies/MapServer/9/query?f=json&objectIds=36&returnGeometry=true&outSR=4167 GEOS warning: Hole lies outside shell at or near point 174.78189611685229 -41.077770200471164 Layer name: SELECT Geometry: None Feature Count: 1 Layer SRS WKT: (unknown) TA2013_V1_00_NAME: String (0.0) ST_IsValid(GEOMETRY): Integer (0.0) OGRFeature(SELECT):0 TA2013_V1_00_NAME (String) = Porirua City ST_IsValid(GEOMETRY) (Integer) = 0 Is this a bug in the data from the service, or just the way the Esri defines geometry objects (and therefor an OGR bug)? I can't see a definition for multi-polygons in Esri API docs: http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#//02r3000000n1000000 Cheers, Jeremy Palmer LINZ Data Service Manager Landonline & Geospatial Services E jpal...@linz.govt.nz | DDI +64 4 498 3537 | M +64 27 2747 862 Wellington Office, Level 7, Radio New Zealand House, 155 The Terrace PO Box 5501, Wellington 6145, New Zealand | T 04 460 0110 W www.linz.govt.nz<http://www.linz.govt.nz/> | www.landonline.govt.nz<http://www.landonline.govt.nz/> | data.linz.govt.nz<http://www.data.linz.govt.nz/> [cid:image001.png@01CF8EE6.FCAD45B0] ________________________________ This message contains information, which may be in confidence and may be subject to legal privilege. If you are not the intended recipient, you must not peruse, use, disseminate, distribute or copy this message. If you have received this message in error, please notify us immediately (Phone 0800 665 463 or i...@linz.govt.nz) and destroy the original message. LINZ accepts no responsibility for changes to this email, or for any attachments, after its transmission from LINZ. Thank You.
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev