Struct ValidationErrors

Source
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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.