arcgis.geometry.filters module

Functions to filter query results by a spatial relationship with another geometry Used when querying feature layers and imagery layers.

intersects

filters.intersects(geometry, sr=None)

filters results whose geometry intersects with the specified geometry

contains

filters.contains(geometry, sr=None)

Returns a feature if its shape is wholly contained within the search geometry. Valid for all shape type combinations.

crosses

filters.crosses(geometry, sr=None)

Returns a feature if the intersection of the interiors of the two shapes is not empty and has a lower dimension than the maximum dimension of the two shapes. Two lines that share an endpoint in common do not cross. Valid for Line/Line, Line/Area, Multi-point/Area, and Multi-point/Line shape type combinations.

envelope_intersects

filters.envelope_intersects(geometry, sr=None)

Returns features if the envelope of the two shapes intersects.

index_intersects

filters.index_intersects(geometry, sr=None)

Returns a feature if the envelope of the query geometry intersects the index entry for the target geometry.

overlaps

filters.overlaps(geometry, sr=None)

Returns a feature if the intersection of the two shapes results in an object of the same dimension, but different from both of the shapes. Applies to Area/Area, Line/Line, and Multi-point/Multi-point shape type combinations.

touches

filters.touches(geometry, sr=None)

Returns a feature if the two shapes share a common boundary. However, the intersection of the interiors of the two shapes must be empty. In the Point/Line case, the point may touch an endpoint only of the line. Applies to all combinations except Point/Point.

within

filters.within(geometry, sr=None)

Returns a feature if its shape wholly contains the search geometry. Valid for all shape type combinations.