I am really running into some problems with the Python API, I am trying to query a feature layer and return all results that fall within a certain distance of a supplied point.
According to the docs here: http://esri.github.io/arcgis-python-api/apidoc/html/arcgis.features.toc.html#feature what I am doing should work but instead it is just returning 1,000 results each time. I know that it should only be returning 1.
pt = Geometry({"x" : -96.95335386999966, "y" : 32.87209363900047, "spatialReference" : {"wkid" : 4326}})
print (pt.is_valid) # True
print (pt.type) # POINT
print (pt) # True
results = policies.query(geometry_filter=pt, distance=10, units="esriSRUnit_Foot")
print(len(results)) # 1000
If someone could point me in the right direction to get that to work that would be amazing.
The query works with the REST API so I know it is not a problem with the layer or anything like that. It's just something with the Python API