NetTopologySuite
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Pages
Package NetTopologySuite.Operation.Valid

Classes

class  ConnectedInteriorTester
 This class tests that the interior of an area Geometry (Polygon or MultiPolygon) is connected. An area Geometry is invalid if the interior is disconnected. This can happen if: More...
 
class  ConsistentAreaTester
 Checks that a {GeometryGraph} representing an area (a Polygon or MultiPolygon ) is consistent with the SFS semantics for area geometries. Checks include: Testing for rings which self-intersect (both properly and at nodes). Testing for duplicate rings. If an inconsistency if found the location of the problem is recorded. More...
 
class  IndexedNestedRingTester
 
class  IsValidOp
 Implements the algorithsm required to compute the Geometry.IsValid method for Geometrys. See the documentation for the various geometry types for a specification of validity. More...
 
class  QuadtreeNestedRingTester
 Tests whether any of a set of LinearRings are nested inside another ring in the set, using a Quadtree index to speed up the comparisons. More...
 
class  RepeatedPointTester
 Implements the appropriate checks for repeated points (consecutive identical coordinates) as defined in the NTS spec. More...
 
class  SimpleNestedRingTester
 Tests whether any of a set of LinearRings are nested inside another ring in the set, using a simple O(n^2) comparison. More...
 
class  SweeplineNestedRingTester
 Tests whether any of a set of LinearRings are nested inside another ring in the set, using a SweepLineIndex index to speed up the comparisons. More...
 
class  TopologyValidationError
 Contains information about the nature and location of a Geometry validation error. More...
 

Enumerations

enum  TopologyValidationErrors {
  TopologyValidationErrors.Error = 0, TopologyValidationErrors.RepeatedPoint = 1, TopologyValidationErrors.HoleOutsideShell = 2, TopologyValidationErrors.NestedHoles = 3,
  TopologyValidationErrors.DisconnectedInteriors = 4, TopologyValidationErrors.SelfIntersection = 5, TopologyValidationErrors.RingSelfIntersection = 6, TopologyValidationErrors.NestedShells = 7,
  TopologyValidationErrors.DuplicateRings = 8, TopologyValidationErrors.TooFewPoints = 9, TopologyValidationErrors.InvalidCoordinate = 10, TopologyValidationErrors.RingNotClosed = 11
}
 Contains information about the nature and location of a Geometry validation error. More...
 

Enumeration Type Documentation

Contains information about the nature and location of a Geometry validation error.

Enumerator
Error 

Not used.

RepeatedPoint 

No longer used: repeated points are considered valid as per the SFS.

HoleOutsideShell 

Indicates that a hole of a polygon lies partially or completely in the exterior of the shell.

NestedHoles 

Indicates that a hole lies in the interior of another hole in the same polygon.

DisconnectedInteriors 

Indicates that the interior of a polygon is disjoint (often caused by set of contiguous holes splitting the polygon into two parts).

SelfIntersection 

Indicates that two rings of a polygonal geometry intersect.

RingSelfIntersection 

Indicates that a ring self-intersects.

NestedShells 

Indicates that a polygon component of a MultiPolygon lies inside another polygonal component.

DuplicateRings 

Indicates that a polygonal geometry contains two rings which are identical.

TooFewPoints 

Indicates that either:

  • A LineString contains a single point.
  • A LinearRing contains 2 or 3 points.
InvalidCoordinate 

Indicates that the X or Y ordinate of a Coordinate is not a valid numeric value (e.g. Double.NaN).

RingNotClosed 

Indicates that a ring is not correctly closed (the first and the last coordinate are different).