Elements¶
-
class
geoalchemy2.elements.WKTElement(*args, **kwargs)[source]¶ Bases:
geoalchemy2.elements._SpatialElement,sqlalchemy.sql.functions.FunctionInstances of this class wrap a WKT or EWKT value.
Usage examples:
wkt_element_1 = WKTElement('POINT(5 45)') wkt_element_2 = WKTElement('POINT(5 45)', srid=4326)
-
desc¶ This element’s description string.
-
-
class
geoalchemy2.elements.WKBElement(*args, **kwargs)[source]¶ Bases:
geoalchemy2.elements._SpatialElement,sqlalchemy.sql.functions.FunctionInstances of this class wrap a WKB or EWKB value.
Geometry values read from the database are converted to instances of this type. In most cases you won’t need to create
WKBElementinstances yourself.Note: you can create
WKBElementobjects from Shapely geometries using thegeoalchemy2.shape.from_shape()function.-
desc¶ This element’s description string.
-
-
class
geoalchemy2.elements.RasterElement(data)[source]¶ Bases:
sqlalchemy.sql.functions.FunctionElementInstances of this class wrap a
rastervalue. Raster values read from the database are converted to instances of this type. In most cases you won’t need to createRasterElementinstances yourself.-
desc¶ This element’s description string.
-