Hi All,
Is it possible to restrict access to layers in a service, based on a spatial filter? Can I define a shape / geometry where only requests that inside the shape will be displayer, identified, and generally returned to the users?
Cheers,
Mark
https://www.esri.com/en-us/arcgis-marketplace/listing/products/414b815740f94a88b5fc8779c2cad2dc
you can use SOI and map service's clip/spatial filter capabilities to accomplish that.
https://developers.arcgis.com/enterprise-sdk/guide/net/what-is-an-soi-net/
look for clipping and spatialFilters parameters in map service export operation help. https://developers.arcgis.com/rest/services-reference/enterprise/export-map.htm
The same options area available for Identify operation. For query you would need to use geometry parameter.
I was hoping it would be a simple solution. Perhaps a definition query on the shape field with st_geometry?
That would be nice. 🙂
you are right, that should just work if your data are in enterprise database. Sorry I was thinking of some complicated workflows.
I wonder if I can create a spatial view of the feature class, containing the shape. Might have to look at that ...
do you need different views for different users/groups? If so then you'll be looking at a different service for each with the system overheads that can introduce.