1

I'm using GDAL 1.10.1 for reading ArcGIS Server responses with automatic conversion to GeoJSON format as described in Converting ArcGIS Server JSON to GeoJSON? post.

However, it looks like some of the Feature Servers published by ArcGIS return empty results when queried using the above technique: http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/BloomfieldHillsMichigan/LandusePlanning/FeatureServer/2/query?where=objectid+%3D+objectid&outfields=&f=pjson

Could someone explain why the technique is not working for some data? Any pointers to how this query-based conversion works in general would be appreciated.

3

I'd like to respond to my own question for the benefit of others that may have encountered a similar problem.

The following special cases (at least) need to be considered when reading ArcGIS data using GDAL/OGR libraries:

  1. GDAL/OGR cannot process GeoJSON results containing UNICODE characters (\uABCD style)
  2. ArcGIS limits the amount of objects returned per single query (usually to 1000)
  3. Empty feature sets are not accepted by GDAL/OGR

This means that special care needs to be taken by the application client code for GeoJSON output returned by ArcGIS before passing it over to GDAL/OGR. A solution could be to run ArcGIS queries without GDAL/OGR, save GeoJSON results into a file to be processed so that the contents are acceptable for GDAL/OGR.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.