catatom2osm.geo.geometry module

class catatom2osm.geo.geometry.Geometry[fuente]

Bases: object

Methods for QGIS 2-3 compatibility and geometry utilities.

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

Return feature geometry always as a multipolygon.

static get_outer_rings(feature_or_geometry)[fuente]

Return feature geometry as a multipolygon without inner rings.

static get_outer_vertices(feature)[fuente]

Return list of distinct vertices in feature geometry outer rings.

static get_vertices_list(feature)[fuente]

Return list of all distinct vertices in feature geometry.

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

Combine all geometries in group of features.

static merge_adjacent_polygons(feature)[fuente]

Merge adjacent polygons in a feature geometry.

Returns true if geometry is changed.