TopologyValidationError class

Contains information about the nature and location of a {@link Geometry} validation error

@version 1.7

Constructors

TopologyValidationError(int errorType)
Creates a validation error of the given type with a null location
TopologyValidationError.withCoordinate(int errorType, Coordinate? pt)
Creates a validation error with the given type and location

Properties

errorType int
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
pt Coordinate?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getCoordinate() Coordinate?
Returns the location of this error (on the {@link Geometry} containing the error).
getErrorType() int
Gets the type of this error.
getMessage() String
Gets an error message describing this error. The error message does not describe the location of the error.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
Gets a message describing the type and location of this error. @return the error message
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

DISCONNECTED_INTERIOR int
Indicates that the interior of a polygon is disjoint (often caused by set of contiguous holes splitting the polygon into two parts)
final
DUPLICATE_RINGS int
Indicates that a polygonal geometry contains two rings which are identical
final
errMsg List<String>
Messages corresponding to error codes
final
ERROR int
Not used @deprecated
final
HOLE_OUTSIDE_SHELL int
Indicates that a hole of a polygon lies partially or completely in the exterior of the shell
final
INVALID_COORDINATE int
Indicates that the X or Y ordinate of a Coordinate is not a valid numeric value (e.g. {@link Double#NaN} )
final
NESTED_HOLES int
Indicates that a hole lies in the interior of another hole in the same polygon
final
NESTED_SHELLS int
Indicates that a polygon component of a MultiPolygon lies inside another polygonal component
final
REPEATED_POINT int
No longer used - repeated points are considered valid as per the SFS @deprecated
final
RING_NOT_CLOSED int
Indicates that a ring is not correctly closed (the first and the last coordinate are different)
final
RING_SELF_INTERSECTION int
Indicates that a ring self-intersects
final
SELF_INTERSECTION int
Indicates that two rings of a polygonal geometry intersect
final
TOO_FEW_POINTS int
Indicates that either
final