pub struct ValidationErrors<T>where
T: Float,{
pub valid: bool,
pub has_less_than_three_points: bool,
pub is_multi_polygon: bool,
pub unsupported_floating_point_values: Vec<T>,
pub open_rings: Vec<LineString<T>>,
pub ring_intersects_other_ring: Vec<Coordinate<T>>,
pub self_intersections: Vec<Coordinate<T>>,
pub point_touching_line: Vec<Coordinate<T>>,
pub repeated_points: Vec<Coordinate<T>>,
}
Expand description
Violations of the OGC rules for polygon validity This also includes usage of NaN or Infinite floating point values
Fields§
§valid: bool
Whether the polygon is valid or not
has_less_than_three_points: bool
Whether the polygon has less than three points
is_multi_polygon: bool
Whether the polygon is actually a multipolygon
unsupported_floating_point_values: Vec<T>
NaN/Infinite floating point values
open_rings: Vec<LineString<T>>
Rings of the polygon that have not been closed
ring_intersects_other_ring: Vec<Coordinate<T>>
Holes in the polygon that intersect the outer ring of another inner ring (they may, however, share points)
self_intersections: Vec<Coordinate<T>>
Coordinates where self intersection occurs
point_touching_line: Vec<Coordinate<T>>
Points that touch a line
repeated_points: Vec<Coordinate<T>>
Points repeated in a single ring
Auto Trait Implementations§
impl<T> Freeze for ValidationErrors<T>
impl<T> RefUnwindSafe for ValidationErrors<T>where
T: RefUnwindSafe,
impl<T> Send for ValidationErrors<T>where
T: Send,
impl<T> Sync for ValidationErrors<T>where
T: Sync,
impl<T> Unpin for ValidationErrors<T>where
T: Unpin,
impl<T> UnwindSafe for ValidationErrors<T>where
T: UnwindSafe,
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