Trait sfcgal::ToSFCGAL

source ·
pub trait ToSFCGAL {
    // Required method
    fn to_sfcgal(&self) -> Result<SFCGeometry>;
}
Expand description

Convert object to a SFCGeometry (implemented on CoordSeq and geo-types geometries)

Required Methods§

Implementations on Foreign Types§

source§

impl ToSFCGAL for Geometry<f64>

Create a SFCGeometry from any geo-type Geometry

source§

impl ToSFCGAL for GeometryCollection<f64>

Create a SFCGeometry from a geo-types GeometryCollection

source§

impl ToSFCGAL for Line<f64>

Create a SFCGeometry from a geo-types Line

source§

impl ToSFCGAL for LineString<f64>

Create a SFCGeometry from a geo-types LineString

source§

impl ToSFCGAL for MultiLineString<f64>

Create a SFCGeometry from a geo-types MultiLineString

source§

impl ToSFCGAL for MultiPoint<f64>

Create a SFCGeometry from a geo-types MultiPoint

source§

impl ToSFCGAL for MultiPolygon<f64>

Create a SFCGeometry from a geo-types MultiPolygon

source§

impl ToSFCGAL for Point<f64>

Create a SFCGeometry from a geo-types Point

source§

impl ToSFCGAL for Polygon<f64>

Create a SFCGeometry from a geo-types Polygon

source§

impl ToSFCGAL for Rect<f64>

Create a SFCGeometry from a geo-types Rect

source§

impl ToSFCGAL for Triangle<f64>

Create a SFCGeometry from a geo-types Triangle

Implementors§

source§

impl<T: ToSFCGALGeom + CoordType> ToSFCGAL for CoordSeq<T>

Convert coordinates (tuple of 2 or 3 members) to SFCGeometry using the corresponding CoordSeq variant of the wanted geometry.