safe.storage.geometry module

class safe.storage.geometry.Geometry[source]

Common class for geometries

class safe.storage.geometry.Polygon(outer_ring, inner_rings=None)[source]

Bases: safe.storage.geometry.Geometry

Polygon geometry

Contains outer ring and optionally list of inner rings

All rings are assumed to be Nx2 numpy arrays of vertex coordinates lon, lat