1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// src/types/mod.rs
//! Geometry types owned by `geometres`.
//!
//! # The construction contract (permissive constructors)
//!
//! Every constructor validates, so **a value that exists has passed its
//! checks**:
//!
//! - every coordinate is finite;
//! - every ring and line has enough distinct vertices, with no consecutive
//! duplicates;
//! - every ring's winding is correct and its exact signed area is nonzero,
//! with exteriors counterclockwise and holes clockwise, decided by
//! certified area signs;
//! - every hole lies inside its exterior, holes are interior-disjoint, and a
//! multipolygon's parts meet at most at finitely many points, all decided
//! exactly.
//!
//! The constructors are deliberately **permissive** beyond that. A value
//! that exists may still be invalid in the OGC sense, in exactly two ways:
//!
//! - **a ring may touch or cross itself**, since simplicity is not checked at
//! construction;
//! - **a polygon's interior may be disconnected**, since holes touching the
//! exterior and each other at points can chain into a cut.
//!
//! [`ops::is_valid`](crate::ops::is_valid) and
//! [`ops::validity_issues`](crate::ops::validity_issues) decide both,
//! exactly, and report every issue;
//! [`ops::split_pinches`](crate::ops::split_pinches) repairs a ring that
//! passes through one of its vertices twice. Operations never refuse on the
//! grounds that their input might be invalid: a caller who chooses to
//! operate on an unchecked value gets output that is correct for that value
//! as a point set, or an output that is explicitly not vouched for.
pub use ;
pub use ;
pub use Envelope;
pub use Geometry;
pub use ;
pub use LineString;
pub use LinearRing;
pub use MultiLineString;
pub use MultiPoint;
pub use MultiPolygon;
pub use ;
// `MultiPolygon3d` applies the 2D part rule to its parts' projections.
pub use first_overlapping_parts;
pub use ;
pub use Point;
pub use Polygon;
// `Polygon3d` validates its holes on their XY projection with the same
// check.
pub use ring_is_degenerate;
pub use validate_hole_placement;
pub use ;