[gdal-dev] ArcGIS RestAPI JSON Polygons

Mateusz Łoskot mateusz at loskot.net
Mon Jun 23 01:17:44 PDT 2014


On 23 June 2014 03:32, Jeremy Palmer <JPalmer at linz.govt.nz> wrote:
>
> Is this a bug in the data from the service, or just the way the Esri defines geometry objects (and therefor an OGR bug)?

AFAIU, this is not a bug in OGR, but OGR GeoJSON drivers works with
GeoJSON format
whereas JSON produced by ESRI is a different format, not GeoJSON.


> 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

Can you?
There is no geometry of multipolygon specified.
AFAIU, for multipolygon ESRI REST produces a hybrid: a Polygon that
contains detached rings
(or rings not in other rings, so they are not holes) and that is
interpreted as multipolygon.

Fun.

Best regards,
-- 
Mateusz  Łoskot, http://mateusz.loskot.net


More information about the gdal-dev mailing list