ESRI example code in Create a FeatureLayer from a shapefile adds zipped shapefile into map.
This code uses ArcGIS REST API Generate to create the feature collection, but it is limited and can't create if total recors number is greater than 4000.
So, I want to analyze the zipped shapefile prior to generating features using Generate operation, in order to know the number of records, either total, or better - per layer.
My questions are:
- How can I add in this code a query to only get the total number of records (in the input zipped shapefile (in order to know apriory if it is greater than 4000)?