Predicates

Predicates#

has_z(geometry, **kwargs)

Returns True if a geometry has a Z coordinate.

is_ccw(geometry, **kwargs)

Returns True if a linestring or linearring is counterclockwise.

is_closed(geometry, **kwargs)

Returns True if a linestring's first and last points are equal.

is_empty(geometry, **kwargs)

Returns True if a geometry is an empty point, polygon, etc.

is_geometry(geometry, **kwargs)

Returns True if the object is a geometry

is_missing(geometry, **kwargs)

Returns True if the object is not a geometry (None)

is_prepared(geometry, **kwargs)

Returns True if a Geometry is prepared.

is_ring(geometry, **kwargs)

Returns True if a linestring is closed and simple.

is_simple(geometry, **kwargs)

Returns True if a Geometry has no anomalous geometric points, such as self-intersections or self tangency.

is_valid(geometry, **kwargs)

Returns True if a geometry is well formed.

is_valid_input(geometry, **kwargs)

Returns True if the object is a geometry or None

is_valid_reason(geometry, **kwargs)

Returns a string stating if a geometry is valid and if not, why.

crosses(a, b, **kwargs)

Returns True if A and B spatially cross.

contains(a, b, **kwargs)

Returns True if geometry B is completely inside geometry A.

contains_xy(geom, x[, y])

Returns True if the Point (x, y) is completely inside geometry A.

contains_properly(a, b, **kwargs)

Returns True if geometry B is completely inside geometry A, with no common boundary points.

covered_by(a, b, **kwargs)

Returns True if no point in geometry A is outside geometry B.

covers(a, b, **kwargs)

Returns True if no point in geometry B is outside geometry A.

disjoint(a, b, **kwargs)

Returns True if A and B do not share any point in space.

dwithin(a, b, distance, **kwargs)

Returns True if the geometries are within a given distance.

equals(a, b, **kwargs)

Returns True if A and B are spatially equal.

intersects(a, b, **kwargs)

Returns True if A and B share any portion of space.

intersects_xy(geom, x[, y])

Returns True if A and the Point (x, y) share any portion of space.

overlaps(a, b, **kwargs)

Returns True if A and B spatially overlap.

touches(a, b, **kwargs)

Returns True if the only points shared between A and B are on the boundary of A and B.

within(a, b, **kwargs)

Returns True if geometry A is completely inside geometry B.

equals_exact(a, b[, tolerance])

Returns True if A and B are structurally equal.

relate(a, b, **kwargs)

Returns a string representation of the DE-9IM intersection matrix.

relate_pattern(a, b, pattern, **kwargs)

Returns True if the DE-9IM string code for the relationship between the geometries satisfies the pattern, else False.