Trait 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 information about geometry type.

Required Methods§

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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).