com.vividsolutions.jts.operation.valid

Class TopologyValidationError


public class TopologyValidationError
extends java.lang.Object

Contains information about the nature and location of a Geometry validation error
Version:
1.6

Field Summary

static int
DISCONNECTED_INTERIOR
static int
DUPLICATE_RINGS
static int
ERROR
static int
HOLE_OUTSIDE_SHELL
static int
INVALID_COORDINATE
static int
NESTED_HOLES
static int
NESTED_SHELLS
static int
REPEATED_POINT
static int
RING_SELF_INTERSECTION
static int
SELF_INTERSECTION
static int
TOO_FEW_POINTS

Constructor Summary

TopologyValidationError(int errorType)
TopologyValidationError(int errorType, Coordinate pt)

Method Summary

Coordinate
getCoordinate()
int
getErrorType()
String
getMessage()
String
toString()

Field Details

DISCONNECTED_INTERIOR

public static final int DISCONNECTED_INTERIOR
Field Value:
4

DUPLICATE_RINGS

public static final int DUPLICATE_RINGS
Field Value:
8

ERROR

public static final int ERROR
Field Value:
0

HOLE_OUTSIDE_SHELL

public static final int HOLE_OUTSIDE_SHELL
Field Value:
2

INVALID_COORDINATE

public static final int INVALID_COORDINATE
Field Value:
10

NESTED_HOLES

public static final int NESTED_HOLES
Field Value:
3

NESTED_SHELLS

public static final int NESTED_SHELLS
Field Value:
7

REPEATED_POINT

public static final int REPEATED_POINT
Field Value:
1

RING_SELF_INTERSECTION

public static final int RING_SELF_INTERSECTION
Field Value:
6

SELF_INTERSECTION

public static final int SELF_INTERSECTION
Field Value:
5

TOO_FEW_POINTS

public static final int TOO_FEW_POINTS
Field Value:
9

Constructor Details

TopologyValidationError

public TopologyValidationError(int errorType)

TopologyValidationError

public TopologyValidationError(int errorType,
                               Coordinate pt)

Method Details

getCoordinate

public Coordinate getCoordinate()

getErrorType

public int getErrorType()

getMessage

public String getMessage()

toString

public String toString()