class documentation

Undocumented

Method __init__ Undocumented
Method area Computes the area of the geometry.
Method bounds Returns a Bounds object that bounds this shape.
Method centroid Returns a centroid as a Point shape.
Method contains Returns True if this shape contains the other.
Method covered_by Returns True if this shape is covered by the other.
Method covers Returns True if this shape covers the other.
Method crosses Returns True if this shape crosses the other.
Method disjoint Returns True if this shape does not intersect with the other.
Method equals Returns True if this shape is equal to the other.
Method intersection Computes an intersection of this shape and other shapes.
Method intersects Returns True if this shape intersects with the other.
Method is_empty Returns True if this shape is empty.
Method is_ring Returns True if this shape is a ring.
Method is_simple Returns True if this shape is 'simple'.
Method is_valid Returns True if this shape is valid.
Method overlaps Returns True if this shape overlaps the other.
Method to_ewkb Returns an EWKB representation of this shape as a binary string.
Method to_ewkb_hex Returns an EWKB representation of this shape as a hex string.
Method to_ewkt Returns an EWKT representation of this shape.
Method to_geojson Returns a GeoJSON representation of this shape.
Method to_multi Converts a singly-geometry shape to a multi-geometry one.
Method to_props Returns a GeoJSON representation of this shape.
Method to_type Converts a geometry to another type.
Method to_wkb Returns a WKB representation of this shape as a binary string.
Method to_wkb_hex Returns a WKB representation of this shape as a hex string.
Method to_wkt Returns a WKT representation of this shape.
Method tolerance_polygon Builds a buffer polygon around the shape.
Method touches Returns True if this shape touches the other.
Method transformed_to Returns this shape transformed to another CRS.
Method union Computes a union of this shape and other shapes.
Method within Returns True if this shape is within the other.
Instance Variable crs CRS of this shape.
Instance Variable geom Undocumented
Instance Variable type Geometry type.
Instance Variable x X-coordinate for Point geometries, None otherwise.
Instance Variable y Y-coordinate for Point geometries, None otherwise.
Method _binary_predicate Undocumented
def __init__(self, geom, crs: gws.ICrs): (source)

Undocumented

def area(self): (source)

Computes the area of the geometry.

def bounds(self): (source)

Returns a Bounds object that bounds this shape.

def centroid(self): (source)

Returns a centroid as a Point shape.

def contains(self, other): (source)

Returns True if this shape contains the other.

def covered_by(self, other): (source)

Returns True if this shape is covered by the other.

def covers(self, other): (source)

Returns True if this shape covers the other.

def crosses(self, other): (source)

Returns True if this shape crosses the other.

def disjoint(self, other): (source)

Returns True if this shape does not intersect with the other.

def equals(self, other): (source)

Returns True if this shape is equal to the other.

def intersection(self, *others): (source)

Computes an intersection of this shape and other shapes.

def intersects(self, other): (source)

Returns True if this shape intersects with the other.

def is_empty(self): (source)

Returns True if this shape is empty.

def is_ring(self): (source)

Returns True if this shape is a ring.

def is_simple(self): (source)

Returns True if this shape is 'simple'.

def is_valid(self): (source)

Returns True if this shape is valid.

def overlaps(self, other): (source)

Returns True if this shape overlaps the other.

def to_ewkb(self): (source)

Returns an EWKB representation of this shape as a binary string.

def to_ewkb_hex(self): (source)

Returns an EWKB representation of this shape as a hex string.

def to_ewkt(self): (source)

Returns an EWKT representation of this shape.

def to_geojson(self, always_xy=False): (source)

Returns a GeoJSON representation of this shape.

def to_multi(self): (source)

Converts a singly-geometry shape to a multi-geometry one.

def to_props(self): (source)

Returns a GeoJSON representation of this shape.

def to_type(self, new_type: gws.GeometryType): (source)

Converts a geometry to another type.

def to_wkb(self): (source)

Returns a WKB representation of this shape as a binary string.

def to_wkb_hex(self): (source)

Returns a WKB representation of this shape as a hex string.

def to_wkt(self): (source)

Returns a WKT representation of this shape.

def tolerance_polygon(self, tolerance, quad_segs=None): (source)

Builds a buffer polygon around the shape.

def touches(self, other): (source)

Returns True if this shape touches the other.

def transformed_to(self, crs): (source)

Returns this shape transformed to another CRS.

def union(self, others): (source)

Computes a union of this shape and other shapes.

def within(self, other): (source)

Returns True if this shape is within the other.

CRS of this shape.

geom: shapely.geometry.base.BaseGeometry = (source)

Undocumented

Geometry type.

X-coordinate for Point geometries, None otherwise.

Y-coordinate for Point geometries, None otherwise.

def _binary_predicate(self, other, op): (source)

Undocumented