Skip to content

Commit

Permalink
add disclaimer about polygon validity
Browse files Browse the repository at this point in the history
  • Loading branch information
frewsxcv committed Jan 21, 2019
1 parent 98bb29c commit 7e2e9da
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions geo-types/src/polygon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ use {CoordinateType, LineString, Point, Rect};
/// be _closed_, such that the first and last `Coordinate` of each ring has
/// the same value.
///
/// # Validity
///
/// Besides the closed `LineString` rings guarantee, the `Polygon` structure
/// does not enforce validity at this time. For example, it is possible to
/// construct a `Polygon` that has:
///
/// - fewer than 3 coordinates per `LineString` ring
/// - interior rings that intersect other interior rings
/// - interior rings that extend beyond the exterior ring
///
/// # `LineString` closing operation
///
/// Some APIs on `Polygon` result in a closing operation on a `LineString`. The
Expand Down

0 comments on commit 7e2e9da

Please sign in to comment.