Area of Interest

pyproj.aoi.AreaOfInterest

Note

The backwards compatible import is pyproj.transformer.AreaOfInterest

class pyproj.aoi.AreaOfInterest(west_lon_degree: float, south_lat_degree: float, east_lon_degree: float, north_lat_degree: float)[source]

New in version 2.3.

This is the area of interest for:

  • Transformations

  • Querying for CRS data.

east_lon_degree: float

The east bound in degrees of the area of interest.

north_lat_degree: float

The north bound in degrees of the area of interest.

south_lat_degree: float

The south bound in degrees of the area of interest.

west_lon_degree: float

The west bound in degrees of the area of interest.

pyproj.aoi.AreaOfUse

class pyproj.aoi.AreaOfUse(west: float, south: float, east: float, north: float, name: Optional[str] = None)[source]

New in version 2.0.

Area of Use for CRS, CoordinateOperation, or a Transformer.

east: float

East bound of area of use.

name: Optional[str]

Name of area of use.

north: float

North bound of area of use.

south: float

South bound of area of use.

west: float

West bound of area of use.

pyproj.aoi.BBox

class pyproj.aoi.BBox(west: float, south: float, east: float, north: float)[source]

Bounding box to check if data intersects/contains other bounding boxes.

New in version 3.0.

contains(other: Union[pyproj.aoi.BBox, pyproj.aoi.AreaOfUse]) → bool[source]
Parameters

other (Union["BBox", AreaOfUse]) – The other BBox to use to check.

Returns

True if this BBox contains the other bbox.

Return type

bool

intersects(other: Union[pyproj.aoi.BBox, pyproj.aoi.AreaOfUse]) → bool[source]
Parameters

other (BBox) – The other BBox to use to check.

Returns

True if this BBox intersects the other bbox.

Return type

bool