public class TopologyValidationError extends AbstractGeometryValidationError
Geometry
validation error| Modifier and Type | Field and Description |
|---|---|
static int |
DISCONNECTED_INTERIOR
Indicates that the interior of a polygon is disjoint
(often caused by set of contiguous holes splitting the polygon into two parts)
|
static int |
DUPLICATE_RINGS
Indicates that a polygonal geometry contains two rings which are identical
|
static String[] |
errMsg
Messages corresponding to error codes
|
static int |
HOLE_OUTSIDE_SHELL
Indicates that a hole of a polygon lies partially or completely in the exterior of the shell
|
static int |
NESTED_HOLES
Indicates that a hole lies in the interior of another hole in the same polygon
|
static int |
NESTED_SHELLS
Indicates that a polygon component of a MultiPolygon lies inside another polygonal component
|
static int |
RING_NOT_CLOSED
Indicates that a ring is not correctly closed
(the first and the last coordinate are different)
|
static int |
RING_SELF_INTERSECTION
Indicates that a ring self-intersects
|
static int |
SELF_INTERSECTION
Indicates that two rings of a polygonal geometry intersect
|
static int |
TOO_FEW_POINTS
Indicates that either
a LineString contains a single point
a LinearRing contains 2 or 3 points
|
| Constructor and Description |
|---|
TopologyValidationError(int errorType,
Point pt)
Creates a validation error with the given type and location
|
| Modifier and Type | Method and Description |
|---|---|
Point |
getCoordinate()
Returns the location of this error (on the
Geometry containing the error). |
int |
getErrorType()
Gets the type of this error.
|
String |
getMessage()
Gets an error message describing this error.
|
String |
toString()
Gets a message describing the type and location of this error.
|
getErrorGeometry, getErrorPoint, getGeometrypublic static final int HOLE_OUTSIDE_SHELL
public static final int NESTED_HOLES
public static final int DISCONNECTED_INTERIOR
public static final int SELF_INTERSECTION
public static final int RING_SELF_INTERSECTION
public static final int NESTED_SHELLS
public static final int DUPLICATE_RINGS
public static final int TOO_FEW_POINTS
public static final int RING_NOT_CLOSED
public static final String[] errMsg
public TopologyValidationError(int errorType,
Point pt)
errorType - the type of the errorpt - the location of the errorpublic Point getCoordinate()
Geometry containing the error).Coordinates on the input geometrypublic int getErrorType()
public String getMessage()
getMessage in interface GeometryValidationErrorgetMessage in class AbstractGeometryValidationErrorpublic String toString()
toString in class AbstractGeometryValidationErrorCopyright © 2015 Revolution Systems Inc.. All rights reserved.