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.0.
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.0.
Area of Use for CRS, CoordinateOperation, or a Transformer.
-
property
bounds
¶ The bounds of the area of use.
- Returns
west, south, east, and north bounds.
- Return type
Tuple[float, float, float, float]
-
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.
-
property
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.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
-
east
: float¶ East bound of bounding box.
-
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
-
north
: float¶ North bound of bounding box.
-
south
: float¶ South bound of bounding box.
-
west
: float¶ West bound of bounding box.
-