Trait geo::algorithm::to_postgis::ToPostgis
[−]
[src]
pub trait ToPostgis<T> { fn to_postgis_with_srid(&self, srid: Option<i32>) -> T; fn to_postgis_wgs84(&self) -> T { ... } }
Converts geometry to a PostGIS type.
Note that PostGIS databases can include a SRID (spatial reference
system identifier) for geometry stored in them. You should specify
the SRID of your geometry when converting, using to_postgis_with_srid()
,
or use to_postgis_wgs84()
if your data is standard WGS84.
Required Methods
fn to_postgis_with_srid(&self, srid: Option<i32>) -> T
Converts this geometry to a PostGIS type, using the supplied SRID.
Provided Methods
fn to_postgis_wgs84(&self) -> T
Converts this WGS84 geometry to a PostGIS type.
Implementors
impl ToPostgis<Point> for Point<f64>
impl ToPostgis<LineString> for Line<f64>
impl ToPostgis<Polygon> for Polygon<f64>
impl ToPostgis<GeometryCollection> for GeometryCollection<f64>
impl ToPostgis<MultiPolygon> for MultiPolygon<f64>
impl ToPostgis<MultiLineString> for MultiLineString<f64>
impl ToPostgis<MultiPoint> for MultiPoint<f64>
impl ToPostgis<LineString> for LineString<f64>
impl ToPostgis<Geometry> for Geometry<f64>