catatom2osm.geo.geometry module

class catatom2osm.geo.geometry.Geometry[source]

Bases: object

Methods for QGIS 2-3 compatibility and geometry utilities.

static fromMultiPointXY(mp)[source]
static fromMultiPolygonXY(mp)[source]
static fromPointXY(point)[source]
static fromPolygonXY(polygon)[source]
static get_multipolygon(feature_or_geometry)[source]

Return feature geometry always as a multipolygon.

static get_outer_rings(feature_or_geometry)[source]

Return feature geometry as a multipolygon without inner rings.

static get_outer_vertices(feature)[source]

Return list of distinct vertices in feature geometry outer rings.

static get_vertices_list(feature)[source]

Return list of all distinct vertices in feature geometry.

static is_valid(geom)[source]
static merge_adjacent_features(group)[source]

Combine all geometries in group of features.

static merge_adjacent_polygons(feature)[source]

Merge adjacent polygons in a feature geometry.

Returns true if geometry is changed.