GeometryCollection
The Geometry Collection class.
Attributes
| Attribute | Type | Description |
|---|---|---|
| coords | tuple | Return a tuple representation of this Geometry Collection. |
Methods
add()
@classmethod
def add(
geom: OGRGeometry | str
) - > null
Add the geometry to this Geometry Collection.
Parameters
| Name | Type | Description |
|---|---|---|
| geom | `OGRGeometry | str` |
Returns
| Type | Description |
|---|---|
null |
point_count()
@classmethod
def point_count() - > int
Return the number of Points in this Geometry Collection.
Returns
| Type | Description |
|---|---|
int | The 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
| Type | Description |
|---|---|
tuple | A tuple containing the coordinate tuples of every geometry within the collection |