Select to view content in your preferred language

ArcGIS Online spatial filter of a layer based on the boundary or another layer

1590
2
03-12-2023 11:09 AM
Status: Open
JohnEsch1
Occasional Contributor

ArcGIS Online needs a spatial filter to allow filtering a layer based on the boundary or another layer. 

A common need is to limit the extents of an ArcGIS REST services based in polygon boundary of another layer. Many nationwide ArcGIS REST services have a state field or other geography field, to it is easy to add a filter of State is 'Michigan' to just get the data for a given area if defined in an attribute field. In other cases the nationwide data set does not a State of other geography field to filter on. A good example is the layer 

https://gis1.usgs.gov/arcgis/rest/services/padus3/Public_Access/MapServer/0

Layer: Protected Areas Database of the United States (PAD-US) v3.0 (ID: 0)

Name: Protected Areas Database of the United States (PAD-US) v3.0

This is very large layer and often takes a while to display in a web map/web app. This layer does not have a State or other geography field to filter on. I would like to be able to have a spatial filter to just consume the data within Michigan using  a standard Michigan county boundary polygon file like:

https://gisagocss.state.mi.us/arcgis/rest/services/OpenData/michigan_geographic_framework/MapServer/...

 

2 Comments
temprobertcottreau131313

Summarize Within might solve your problem under Analysis

JJ_Reyes

It seems the OP has a workflow similar to ours were we need to always keep the data from the external source, not use an Analysis to create a new layer.