Class to be mixed in mapped classes.
When used the mapped class exposes
When used the mapped object exposes
Example:
Base = declarative_base(metadata=metadata)
class Line(Base, GeometryTableMixIn):
__tablename__ = 'lines'
__table_args__ = {
'autoload' : True,
'autoload_with' : engine
}
the_geom = GeometryColumn(Geometry(dimension=2, srid=4326))
The value of the primary key.
The Shapely geometry object associated to the geometry value.
Returns the table’s geometry column or None if the table has no geometry column.
Returns the table’s primary key column
Create and return a geojson.Feature object from this mapped object.