Trait sfcgal::TryInto

source ·
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§

source

fn try_into(self) -> Result<T>

Implementors§

source§

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)

§

type Err = Error

source§

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.

§

type Err = Error