[−][src]Trait geo_postgis::FromPostgis
Creates geometry from a PostGIS type.
Note that PostGIS databases can store data under any spatial reference system - not just WGS84. No attempt is made to convert data between reference systems.
Required methods
pub fn from_postgis(_: T) -> Self[src]
Implementations on Foreign Types
impl<'a, T> FromPostgis<&'a T> for Point<f64> where
T: Point, [src]
T: Point,
pub fn from_postgis(pt: &'a T) -> Self[src]
impl<'a, T> FromPostgis<&'a T> for LineString<f64> where
T: LineString<'a>, [src]
T: LineString<'a>,
pub fn from_postgis(ls: &'a T) -> Self[src]
impl<'a, T> FromPostgis<&'a T> for Option<Polygon<f64>> where
T: Polygon<'a>, [src]
T: Polygon<'a>,
pub fn from_postgis(poly: &'a T) -> Self[src]
This returns an Option, because it's possible for a PostGIS Polygon
to contain zero rings, which makes for an invalid geo::Polygon.
impl<'a, T> FromPostgis<&'a T> for MultiPoint<f64> where
T: MultiPoint<'a>, [src]
T: MultiPoint<'a>,
pub fn from_postgis(mp: &'a T) -> Self[src]
impl<'a, T> FromPostgis<&'a T> for MultiLineString<f64> where
T: MultiLineString<'a>, [src]
T: MultiLineString<'a>,
pub fn from_postgis(mp: &'a T) -> Self[src]
impl<'a, T> FromPostgis<&'a T> for MultiPolygon<f64> where
T: MultiPolygon<'a>, [src]
T: MultiPolygon<'a>,
pub fn from_postgis(mp: &'a T) -> Self[src]
This implementation discards PostGIS polygons that don't convert
(return None when from_postgis() is called on them).
impl<'a, T> FromPostgis<&'a GeometryCollectionT<T>> for GeometryCollection<f64> where
T: Point + EwkbRead, [src]
T: Point + EwkbRead,
pub fn from_postgis(gc: &'a GeometryCollectionT<T>) -> Self[src]
This implementation discards geometries that don't convert
(return None when from_postgis() is called on them).
impl<'a, T> FromPostgis<&'a GeometryT<T>> for Option<Geometry<f64>> where
T: Point + EwkbRead, [src]
T: Point + EwkbRead,
pub fn from_postgis(geo: &'a GeometryT<T>) -> Self[src]
This returns an Option, because the supplied geometry
could be an invalid Polygon.