Extent for feature layers data download

87
3
09-16-2019 12:44 PM
Highlighted
New Contributor III

I have rest APIs that I use to generate geodatabase/ create replica, also I use query for filters for some queries. What I am looking for, is the extent option that I can pass in request. Does ESRI has support for this? Right now I am fetching data for whole globe which might lead to larger data set in future. I need to restrict download of geometries that comes inside specified extent.

Reply
0 Kudos
3 Replies
Highlighted
Occasional Contributor III

Hi Devendra,

Can you clarify which REST API operation(s) you are using? It seems like Create Replica—ArcGIS REST API: Services Directory | ArcGIS for Developers is at least one of them?

If so, Create Replica has a 'geometry' parameter you may use for the purpose.

-Earl

Reply
0 Kudos
Highlighted
New Contributor III

 I am not using createRepica API. I am using "geometry" parameter of this API

Query (Feature Service)—ArcGIS REST API: Services Directory | ArcGIS for Developers 

but the response I am getting is not returning the features restricting to the extent I provide in the "geometry" parameter. It is returning the geometry that I pass instead

I need the geometries that are under the extent I pass.

Reply
0 Kudos
Highlighted
Occasional Contributor III

Okay, so you're trying to do something like this?

https://sampleserver6.arcgisonline.com/arcgis/rest/services/Earthquakes_Since1970/FeatureServer/0/qu... 

Where in this case the source layer is: Layer: Earthquakes1970 (ID: 0) 

and we are returning points that fall more or less within the United States.

-Earl

Reply
0 Kudos