Bases: geoalchemy2.elements._SpatialElement, sqlalchemy.sql.functions.Function
Instances of this class wrap a WKT value.
Usage examples:
wkt_element_1 = WKTElement('POINT(5 45)')
wkt_element_2 = WKTElement('POINT(5 45)', srid=4326)
Bases: geoalchemy2.elements._SpatialElement, sqlalchemy.sql.functions.Function
Instances of this class wrap a WKB value. Geometry values read from the database are converted to instances of this type. In most cases you won’t need to create WKBElement instances yourself.
Note: you can create WKBElement objects from Shapely geometries using the geoalchemy2.shape.from_shape() function.