pub trait ToPostgis<T> {
    fn to_postgis_with_srid(&self, srid: Option<i32>) -> T;

    fn to_postgis_wgs84(&self) -> T { ... }
}
Expand description

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

Converts this geometry to a PostGIS type, using the supplied SRID.

Provided Methods

Converts this WGS84 geometry to a PostGIS type.

Implementations on Foreign Types

Implementors