gws.gis.shape

gws.gis.shape.from_wkt(s: str, crs=None) → gws.types.IShape[source]
gws.gis.shape.from_wkb(s: bytes, crs=None) → gws.types.IShape[source]
gws.gis.shape.from_wkb_hex(s: str, crs=None) → gws.types.IShape[source]
gws.gis.shape.from_geometry(geometry, crs) → gws.types.IShape[source]
gws.gis.shape.from_props(props: gws.types.ShapeProps) → gws.types.IShape[source]
gws.gis.shape.from_extent(extent: Tuple[float, float, float, float], crs) → gws.types.IShape[source]
gws.gis.shape.from_bounds(bounds: gws.types.Bounds) → gws.types.IShape[source]
gws.gis.shape.from_xy(x, y, crs) → gws.types.IShape[source]
gws.gis.shape.union(shapes) → gws.types.IShape[source]
class gws.gis.shape.ShapeProps(*args, **kwargs)[source]
class gws.gis.shape.Shape(geom, crs)[source]
geom = None

noexport

type
props
wkb
ewkb
wkb_hex
ewkb_hex
wkt
ewkt
bounds
extent
x
y
area
centroid
intersects(shape: gws.types.IShape) → bool[source]
tolerance_polygon(tolerance, resolution=None) → gws.types.IShape[source]
to_type(new_type: gws.types.GeometryType) → gws.types.IShape[source]
to_multi() → gws.types.IShape[source]
transformed_to(to_crs, **kwargs) → gws.types.IShape[source]