pub enum Geom {
Point(f64, f64),
LineString(Vec<[f64; 2]>),
Polygon(Vec<Vec<[f64; 2]>>),
MultiPoint(Vec<[f64; 2]>),
MultiLineString(Vec<Vec<[f64; 2]>>),
MultiPolygon(Vec<Vec<Vec<[f64; 2]>>>),
}Expand description
Typed geometry – the kernel’s only geometry language. Coordinates are (lon, lat) pairs in WGS84 degrees (GeoJSON axis order); rings are implicitly closed. GeoJSON <-> Geom conversion lives above the kernel.
Variants§
Point(f64, f64)
LineString(Vec<[f64; 2]>)
Polygon(Vec<Vec<[f64; 2]>>)
MultiPoint(Vec<[f64; 2]>)
MultiLineString(Vec<Vec<[f64; 2]>>)
MultiPolygon(Vec<Vec<Vec<[f64; 2]>>>)
Implementations§
Trait Implementations§
impl StructuralPartialEq for Geom
Auto Trait Implementations§
impl Freeze for Geom
impl RefUnwindSafe for Geom
impl Send for Geom
impl Sync for Geom
impl Unpin for Geom
impl UnsafeUnpin for Geom
impl UnwindSafe for Geom
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more