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.

Loading content...

Provided methods

fn to_postgis_wgs84(&self) -> T[src]

Converts this WGS84 geometry to a PostGIS type.

Loading content...

Implementations on Foreign Types

impl ToPostgis<Point> for Coordinate<f64>[src]

impl ToPostgis<Point> for Point<f64>[src]

impl ToPostgis<LineStringT<Point>> for Line<f64>[src]

impl ToPostgis<PolygonT<Point>> for Polygon<f64>[src]

impl ToPostgis<GeometryCollectionT<Point>> for GeometryCollection<f64>[src]

impl ToPostgis<MultiPolygonT<Point>> for MultiPolygon<f64>[src]

impl ToPostgis<MultiLineStringT<Point>> for MultiLineString<f64>[src]

impl ToPostgis<MultiPointT<Point>> for MultiPoint<f64>[src]

impl ToPostgis<LineStringT<Point>> for LineString<f64>[src]

impl ToPostgis<GeometryT<Point>> for Geometry<f64>[src]

Loading content...

Implementors

Loading content...