public final class GeometryValidator
extends java.lang.Object
PolyLine and Polygon| Modifier and Type | Method and 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 |
public static boolean isValidPolygon(org.openstreetmap.atlas.geography.Polygon polygon)
Polygon's geometry is validpolygon - the Polygon to testtrue if the Polygon has valid geometry, otherwise falsepublic static boolean isValidPolyLine(org.openstreetmap.atlas.geography.PolyLine polyline)
PolyLine's geometry is validpolyline - the PolyLine to testtrue if the PolyLine has valid geometry, otherwise false