package documentation

Undocumented

From __init__.py:

Function buffer Undocumented
Function center Undocumented
Function circumsquare A circumscribed square of the extent.
Function constrain Undocumented
Function diagonal Undocumented
Function from_box Create an extent from a Postgis BOX(1000 2000,20000 40000)
Function from_center Undocumented
Function from_list Create an extent from a list of values
Function from_points Undocumented
Function from_string Create an extent from a comma-separated string "1000,2000,20000 40000"
Function intersect Undocumented
Function size Undocumented
Function swap_xy Undocumented
Function transform Undocumented
Function transform_from_wgs Undocumented
Function transform_to_wgs Undocumented
Function union Undocumented
Function _check Undocumented
Function _sort Undocumented
def from_string(s: str) -> t.Optional[gws.Extent]: (source)

Create an extent from a comma-separated string "1000,2000,20000 40000"

def from_list(ls: list[t.Any]) -> t.Optional[gws.Extent]: (source)

Create an extent from a list of values

def from_points(a: gws.Point, b: gws.Point) -> gws.Extent: (source)

Undocumented

def from_center(xy: gws.Point, size: gws.Size) -> gws.Extent: (source)

Undocumented

def from_box(box: str) -> t.Optional[gws.Extent]: (source)

Create an extent from a Postgis BOX(1000 2000,20000 40000)

Undocumented

Undocumented

Undocumented

def diagonal(e: gws.Extent) -> float: (source)

Undocumented

def circumsquare(e: gws.Extent) -> gws.Extent: (source)

A circumscribed square of the extent.

def buffer(e: gws.Extent, buf: int) -> gws.Extent: (source)

Undocumented

def union(exts: list[gws.Extent]) -> gws.Extent: (source)

Undocumented

def intersect(a: gws.Extent, b: gws.Extent) -> bool: (source)

Undocumented

def transform(e: gws.Extent, crs_from: gws.ICrs, crs_to: gws.ICrs) -> gws.Extent: (source)

Undocumented

def transform_from_wgs(e: gws.Extent, crs_to: gws.ICrs) -> gws.Extent: (source)

Undocumented

def transform_to_wgs(e: gws.Extent, crs_from: gws.ICrs) -> gws.Extent: (source)

Undocumented

Undocumented

def _check(ls: list[t.Any]) -> t.Optional[gws.Extent]: (source)

Undocumented

def _sort(e): (source)

Undocumented