Skip to content

geotools_types

This module contains constants and functions pertaining to data types.

BBoxLike module-attribute #

BBoxLike = tuple[float, float, float, float]

BBox like tuple structure used for type checking.

IntersectsLike module-attribute #

IntersectsLike = Union[
    Point,
    Polygon,
    LineString,
    MultiPolygon,
    MultiPoint,
    MultiLineString,
    GeometryCollection,
]

Intersect-like union of types used for type checking.

DateLike module-attribute #

DateLike = Union[
    datetime,
    str,
    None,
    tuple[Union[datetime, str, None], Union[datetime, str, None]],
    list[Union[datetime, str, None]],
    Iterator[Union[datetime, str, None]],
]

Date-like union of types used for type checking.