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.

property east_lon_degree

The east bound in degrees of the area of interest.

property north_lat_degree

The north bound in degrees of the area of interest.

property south_lat_degree

The south bound in degrees of the area of interest.

property west_lon_degree

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.

property east

East bound of area of use.

property name

Name of area of use.

property north

North bound of area of use.

property south

South bound of area of use.

property west

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[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[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