I use Python code to query an ArcGIS map server. The result link (as json) only returns the Out Fields not the geometry. When I get the result link as kmz it seems to have the geometry, as I'm able to convert into the following layer: enter image description here

Which appropriately looks like a subset of the service layer: enter image description here

I've used the same query method successfully on other map servers (e.g. tiger for US Census), any idea what I'm doing wrong?

  • Just an FYI, mapserver isn't the same an an arcgis map service, which this is. – isamson Dec 11 '17 at 20:07
  • Can you supply your python code? – Stella Dec 11 '17 at 21:11
  • @Stella - This question is about the request (see result link as json) not how python formats/opens that request (urlopen from urllib). I get the same results w/ html (f=html) which is even easier to troubleshoot. I opted to omit it to keep the question simple and more general, but can add it if you think that will improve the question/answer-ability. – jbosq Dec 11 '17 at 21:52

This service:


Does not define any output fields of type esriFieldTypeGeometry, so it won't return geometry as JSON.

I suspect you shouldn't be getting it when requesting kmz either, but..

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.