Class GeometryValidator


  • public final class GeometryValidator
    extends java.lang.Object
    Basic JTS verification for a PolyLine and Polygon
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isValidPolygon​(org.openstreetmap.atlas.geography.Polygon polygon)
      Tests that the Polygon's geometry is valid
      static boolean isValidPolyLine​(org.openstreetmap.atlas.geography.PolyLine polyline)
      Tests that the PolyLine's geometry is valid
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • isValidPolygon

        public static boolean isValidPolygon​(org.openstreetmap.atlas.geography.Polygon polygon)
        Tests that the Polygon's geometry is valid
        Parameters:
        polygon - the Polygon to test
        Returns:
        true if the Polygon has valid geometry, otherwise false
      • isValidPolyLine

        public static boolean isValidPolyLine​(org.openstreetmap.atlas.geography.PolyLine polyline)
        Tests that the PolyLine's geometry is valid
        Parameters:
        polyline - the PolyLine to test
        Returns:
        true if the PolyLine has valid geometry, otherwise false