Select to view content in your preferred language

Extent for feature layers data download

1167
3
09-16-2019 12:44 PM
DevendraKhatri
Emerging Contributor

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.

0 Kudos
3 Replies
EarlMedina
Esri Regular Contributor

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

0 Kudos
DevendraKhatri
Emerging Contributor

 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.

0 Kudos
EarlMedina
Esri Regular Contributor

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

0 Kudos