feature layer query via point buffer

06-13-2017 04:19 PM
New Contributor


I am trying to use the feature layer query api to search for all features within a 10 mile radius of a specific point.

pt = Geometry({"x" : -96.95335386999966, "y" : 32.87209363900047, "spatialReference" : {"wkid" : 102100}})

print (pt.is_valid)
print (pt.type) # POINT
print (pt) #True

query_results_len = policies.query(geometry_filter=pt, distance=10, units="esriSRUnit_Foot")

I have tried various versions of that but I am always getting back 1000 records.

According to the docs this should work.

0 Kudos
1 Reply
MVP Esteemed Contributor

The default for querying a feature layer is to return a feature set, which is commonly limited to 1000 records.  Just to make sure the query is working correctly and something isn't actually broke causing the results to be 1000 all the time, try setting return_count_only=True.