Trait geo_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
[src]
Converts this geometry to a PostGIS type, using the supplied SRID.
Provided methods
fn to_postgis_wgs84(&self) -> T
[src]
Converts this WGS84 geometry to a PostGIS type.