gregory.giguashvili@pdgm

ArcGIS JSON to GeoJSON does not always work

Discussion created by gregory.giguashvili@pdgm on Mar 19, 2014
Latest reply on May 29, 2014 by sarahzohar88
I'm reading ArcGIS Server responses with conversion to GeoJSON format as described in http://gis.stackexchange.com/questions/13029/how-to-convert-arcgis-server-json-to-geojson post.

1. I've tried to search any explanation on how this conversion works, but I could not find anything. Could anyone provide pointers to how this query-based conversion works in general?

2. The above mentioned technique does not work for some Feature Server layers, returning empty results.
This one works fine:
http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Hydrography/Watershed173811/FeatureServer/0/query?where=objectid+%3D+objectid&outfields=*&f=pjson

This one returns empty result:
http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/BloomfieldHillsMichigan/LandusePlanning/FeatureServer/2/query?where=objectid+%3D+objectid&outfields=&f=pjson

Could anyone explain why and how the problem may be solved?

Thanks a lot
Giga

Outcomes