Skip to main content

GeometryCollection

The Geometry Collection class.

Attributes

AttributeTypeDescription
coordstupleReturn a tuple representation of this Geometry Collection.

Methods


add()

@classmethod
def add(
geom: OGRGeometry | str
) - > null

Add the geometry to this Geometry Collection.

Parameters

NameTypeDescription
geom`OGRGeometrystr`

Returns

TypeDescription
null

point_count()

@classmethod
def point_count() - > int

Return the number of Points in this Geometry Collection.

Returns

TypeDescription
intThe aggregate sum of all points contained across every geometry in the collection

tuple()

@classmethod
def tuple() - > tuple

Return a tuple representation of this Geometry Collection.

Returns

TypeDescription
tupleA tuple containing the coordinate tuples of every geometry within the collection