Class GeometryValidator
- java.lang.Object
-
- org.openstreetmap.atlas.checks.validation.GeometryValidator
-
public final class GeometryValidator extends java.lang.ObjectBasic JTS verification for aPolyLineandPolygon
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisValidPolygon(org.openstreetmap.atlas.geography.Polygon polygon)Tests that thePolygon's geometry is validstatic booleanisValidPolyLine(org.openstreetmap.atlas.geography.PolyLine polyline)Tests that thePolyLine's geometry is valid
-
-
-
Method Detail
-
isValidPolygon
public static boolean isValidPolygon(org.openstreetmap.atlas.geography.Polygon polygon)
Tests that thePolygon's geometry is valid- Parameters:
polygon- thePolygonto test- Returns:
trueif thePolygonhas valid geometry, otherwisefalse
-
isValidPolyLine
public static boolean isValidPolyLine(org.openstreetmap.atlas.geography.PolyLine polyline)
Tests that thePolyLine's geometry is valid- Parameters:
polyline- thePolyLineto test- Returns:
trueif thePolyLinehas valid geometry, otherwisefalse
-
-