AnsweredAssumed Answered

Query Extents does not work - ArcGIS Python API

Question asked by fmgl on Jan 7, 2019
Latest reply on Jan 8, 2019 by bixb0012

Im trying to use the ArcGIS Python API to query a few results and gather the extent, I can query the results fine but as soon as I try to extract the extent I retrieve empty results.

Using one of the samples servers, heres my code:

import arcgis.gis gis = GIS()  t = '' layer = FeatureLayer(t, gis)  results = layer.query(where='1=1', return_extent_only=True) 

After I print results I get the following

{"features": [], "fields": []}  

Am I missing something? Seems all to easy up until this point.