pub trait FromPostgis<T> {
    fn from_postgis(_: T) -> Self;
}
Expand description

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

Implementations on Foreign Types

This returns an Option, because it’s possible for a PostGIS Polygon to contain zero rings, which makes for an invalid geo::Polygon.

This implementation discards PostGIS polygons that don’t convert (return None when from_postgis() is called on them).

This implementation discards geometries that don’t convert (return None when from_postgis() is called on them).

This returns an Option, because the supplied geometry could be an invalid Polygon.

Implementors