pub enum G {
Point(Point),
Line(Line),
Polygon(Polygon),
Points(Points),
Lines(Lines),
Polygons(Polygons),
Vec(Geometries),
BBox(BBox),
}Expand description
Geometry type variants handled by this library.
Variants§
Point(Point)
Point geometry.
Line(Line)
Line geometry.
Polygon(Polygon)
Polygon geometry.
Points(Points)
Point collection.
Lines(Lines)
Line collection.
Polygons(Polygons)
Polygon collection.
Vec(Geometries)
Mixed collection excluding BBOX.
BBox(BBox)
Bounding box geometry.
Implementations§
Trait Implementations§
Source§impl GTrait for G
impl GTrait for G
Source§fn to_wkt_fmt(&self, precision: usize) -> String
fn to_wkt_fmt(&self, precision: usize) -> String
Generate a WKT string similar to the
to_wkt()alternative but w/ a
given precision paramter representing the number of digits to print
after the decimal point. Note though that if precision is 0 only
the integer part of the coordinate will be shown. Read moreSource§fn check_coordinates(&self, crs: &CRS) -> Result<(), MyError>
fn check_coordinates(&self, crs: &CRS) -> Result<(), MyError>
Check if all geometry coordinates fall w/in a given CRS’s Area-of-Use,
aka Extent-of-Validity.
Source§impl PartialOrd for G
impl PartialOrd for G
impl StructuralPartialEq for G
Auto Trait Implementations§
impl Freeze for G
impl RefUnwindSafe for G
impl Send for G
impl Sync for G
impl Unpin for G
impl UnwindSafe for G
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