geoalchemy.geometry

class geoalchemy.geometry.Geometry(dimension=2, srid=4326, spatial_index=True, **kwargs)

Geometry column type. This is the base class for all other geometry types like Point, LineString, Polygon, etc.

Converts bind/result values to/from a dialect specific persistent geometry value.

geoalchemy.geometry.GeometryColumn(*args, **kw)

Define a declarative column property with GIS behavior.

This just produces orm.column_property() with the appropriate extension and comparator_factory arguments. The given arguments are passed through to Column. The declarative module extracts the Column for inclusion in the mapped table.

This method can also be used for non-declarative mappings to set the properties for a geometry column when defining the mapping.

class geoalchemy.geometry.GeometryDDL(table)

A DDL extension which integrates SQLAlchemy table create/drop methods with AddGeometryColumn/DropGeometryColumn functions of spatial databases.

Usage:

sometable = Table('sometable', metadata, ...)

GeometryDDL(sometable)

sometable.create()
class geoalchemy.geometry.SpatialAttribute

Intercepts ‘set’ events on a mapped instance attribute and converts the incoming value to a GIS expression.

Previous topic

geoalchemy.base

Next topic

geoalchemy.functions

This Page