package documentation
Utilities to work with Bounds objects.
From __init__.py
:
Function | copy |
Undocumented |
Function | from |
Create Bounds from an Extent. |
Function | from |
Create Bounds from a KVP BBOX param. |
Function | intersect |
Undocumented |
Function | transform |
Undocumented |
Function | union |
Undocumented |
def from_request_bbox(bbox:
str
, default_crs: gws.ICrs
= None, always_xy=False) -> t.Optional[ gws.Bounds]
:
(source)
¶
Create Bounds from a KVP BBOX param.
See OGC 06-121r9, 10.2.3 Bounding box KVP encoding.
Parameters | |
bbox:str | A string with four coordinates, optionally followed by a CRS spec. |
defaultgws.ICrs | Default Crs. |
always | If True, coordinates are assumed to be in the XY (lon/lat) order |
Returns | |
t.Optional[ | A Bounds object. |
Create Bounds from an Extent.
Parameters | |
extent:gws.Extent | An Extent. |
crs:gws.ICrs | A Crs object. |
always | If True, coordinates are assumed to be in the XY (lon/lat) order |
Returns | |
gws.Bounds | A Bounds object. |