Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 1.22 KB

invalidGeometryCheck.md

File metadata and controls

21 lines (13 loc) · 1.22 KB

Invalid Geometry Check

Description

This check flags invalid polyline and polygon geometries.

Live Example

The Way id:803496316 is an invalid self intersecting polygon.

Code Review

This check looks at three types of Atlas Items: Areas, Edges, and Lines. A feature is considered valid for the check if it is one of those types and has not been country sliced.

Geometries are validated using the Java Topology Suite (JTS). The Atlas geometries are converted to JTS geometries. If a features fails to pass the JTS geometry .isSimple() or .isValid() methods then it is flagged.

To learn more about the code, please look at the comments in the source code for the check. InvalidGeometryCheck.java