Select to view content in your preferred language

ArcGIS API for Python; arcgis.features.FeatureLayer().query() troubleshooting

90
0
a week ago
TylerT
by
Frequent Contributor

Hello,

I am having an issue with the FeatureLayer query where not all results are returned.  For example the following:

 

…
flayer.query(where=my_where, as_df=True, return_all_records=True)

 

returns a dataframe with 2503 records.

and

 

…
flayer.query(where=my_where, return_count_only=True)

 

returns integer 3503.

So, I’m missing 1000 known records.  My sense is the rest API is limiting returns someway, but it seems like the return_all_records=True parameter would overcome that limit with recall. 

(docs for return_all_records)

TylerT_0-1736261520470.png

Any thoughts on how I can retrieve all records that satisfy my where clause would be appreciated.

 

Thank you,

Tyler

ArcGIS Pro 3.3

0 Kudos
0 Replies