I would like to be able to apply a spatial definition query to a layer.
I.e. Select features from this pointlayer that are within a feature from buildingpolygons.
Defining a query must be as easy as it can be done in the Select By Location dialog.
The result of the query is updated when features that are involved are modified.
Hi ramong, I believe you can accomplish this workflow by going to the Data Frame Properties > Data Frame > Clipping Options > Clip to Shape. Next click specify shape and in the Data Frame Clipping Dialog select Outline of Features and select your polygon layer. Next you can click exclude layers to exclude all other layers than the points and the output will be showing only the points inside the polygon.
### arcpyproduction EXAMPLE: arcpyproduction.mapping.ClipDataFrameToGeometry (data_frame, clip_geometry, {exclusion_layers})
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.