Trait sfcgal::ToCoordinates

source ·
pub trait ToCoordinates {
    // Required method
    fn to_coordinates<T>(&self) -> Result<CoordSeq<T>>
       where T: CoordType + FromSFCGALGeom;
}
Expand description

Convert object to a CoordSeq holding coordinates and informations about geometry type.

Required Methods§

source

fn to_coordinates<T>(&self) -> Result<CoordSeq<T>>
where T: CoordType + FromSFCGALGeom,

Object Safety§

This trait is not object safe.

Implementors§

source§

impl ToCoordinates for SFCGeometry

Convert a SFCGeometry, given it’s internal GeomType, to the corresponding CoordSeq holding its coordinates (as tuple of 2 or 3 members).