Package org.gvsig.fmap.geom
Interface Geometry.ValidationStatus
- Enclosing interface:
Geometry
public static interface Geometry.ValidationStatus
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionReturn a human readable message explaining the cause of the problem.Return the nearest point to the problem when validate the geometry.intReturn the status code results of validate the geometry.booleanisValid()True if the geoemtry are valid.
-
Field Details
-
VALID
static final int VALID- See Also:
-
CURRUPTED
static final int CURRUPTED- See Also:
-
UNKNOW
static final int UNKNOW- See Also:
-
DISCONNECTED_INTERIOR
static final int DISCONNECTED_INTERIOR- See Also:
-
DUPLICATE_RINGS
static final int DUPLICATE_RINGS- See Also:
-
HOLE_OUTSIDE_SHELL
static final int HOLE_OUTSIDE_SHELL- See Also:
-
INVALID_COORDINATE
static final int INVALID_COORDINATE- See Also:
-
NESTED_HOLES
static final int NESTED_HOLES- See Also:
-
NESTED_SHELLS
static final int NESTED_SHELLS- See Also:
-
RING_NOT_CLOSED
static final int RING_NOT_CLOSED- See Also:
-
RING_SELF_INTERSECTION
static final int RING_SELF_INTERSECTION- See Also:
-
SELF_INTERSECTION
static final int SELF_INTERSECTION- See Also:
-
TOO_FEW_POINTS
static final int TOO_FEW_POINTS- See Also:
-
-
Method Details
-
isValid
boolean isValid()True if the geoemtry are valid.- Returns:
- true form valid geometries
-
getStatusCode
int getStatusCode()Return the status code results of validate the geometry.- Returns:
- validation code
-
getProblemLocation
Point getProblemLocation()Return the nearest point to the problem when validate the geometry. If the geometry is valid, this return null.- Returns:
- the nearest point to the problem or null.
-
getMessage
String getMessage()Return a human readable message explaining the cause of the problem. If the geometry is valid this is null.- Returns:
- the message cause of the problem.
-