pub trait TryInto<T> {
type Err;
// Required method
fn try_into(self) -> Result<T>;
}
Expand description
Conversion from SFCGeometry
(implemented on geo-types geometries)
Required Associated Types§
Required Methods§
Implementors§
source§impl TryInto<Geometry> for CoordSeq<Point2d>
impl TryInto<Geometry> for CoordSeq<Point2d>
Implements conversion from CoordSeq to geo_types::Geometry (better use TryInto<geo_types::Geometry> for SFCGeometry if the intend is to convert SFCGAL Geometries to geo_types ones)
source§impl TryInto<Geometry> for SFCGeometry
impl TryInto<Geometry> for SFCGeometry
Implements faillible conversion from SFCGeometry to geo_types::Geometry.
This is notably faillible because some types of SFCGeometry
like GeoTypes::Polyhedralsurface
don’t have equivalents in geo_types::Geometry.
Please note that geo_types Coordinate and Point primitives are 2d only, so
every information about z coordinate (if any) won’t be taken into account.