demarches_simpy.utils module

exception DemarchesSimpyException(message='There was an error', header='MAIN', *args)[source]
class GeoArea(id, source, description, geometry)[source]

A GeoArea is an object representing a geographical area. It is composed of a geometry and a description as well as a source.

Properties

idstr

The id of the GeoArea

sourceGeoSource

The source of the GeoArea (cadastre or user_selection)

descriptionstr

The description of the GeoArea

geometryshapely.Geometry

The geometry of the GeoArea in shapely.Geometry representation

geometry_typestr

The type of the geometry of the GeoArea (Point, Polygon, MultiPolygon, etc.)

wkt_geometrystr

The geometry of the GeoArea in WKT representation

geojson_featuredict

The isolated geojson feature of the GeoArea

geojsondict

The complete geojson of the GeoArea

class GeoSource(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

The source of the GeoArea

USER_SELECTION

The GeoArea geometry was created by the user

Type:

int

CADASTRE

The GeoArea geometry is set by a cadastre

Type:

int