Package org.locationtech.jts.jump.qa
Class BasicTopologyValidationError
- java.lang.Object
-
- org.locationtech.jts.jump.qa.ValidationError
-
- org.locationtech.jts.jump.qa.BasicTopologyValidationError
-
public class BasicTopologyValidationError extends ValidationError
Adapts a JTS TopologyValidationError to ValidationError. JTS TopologyValidationErrors are created during basic JTS validation, performed by Validator.- See Also:
Validator
-
-
Constructor Summary
Constructors Constructor Description BasicTopologyValidationError(org.locationtech.jts.operation.valid.TopologyValidationError basicTopologyError, Feature feature)
Creates a BasicTopologyValidationError that wraps a JTS TopologyValidationError.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.locationtech.jts.geom.Coordinate
getLocation()
Returns a point near the error.String
getMessage()
Returns a description of the error.-
Methods inherited from class org.locationtech.jts.jump.qa.ValidationError
getFeature, getType
-
-
-
-
Constructor Detail
-
BasicTopologyValidationError
public BasicTopologyValidationError(org.locationtech.jts.operation.valid.TopologyValidationError basicTopologyError, Feature feature)
Creates a BasicTopologyValidationError that wraps a JTS TopologyValidationError.- Parameters:
basicTopologyError
- the JTS error to wrapfeature
- the feature with the error
-
-
Method Detail
-
getMessage
public String getMessage()
Description copied from class:ValidationError
Returns a description of the error.- Overrides:
getMessage
in classValidationError
- Returns:
- a description of the error
-
getLocation
public org.locationtech.jts.geom.Coordinate getLocation()
Description copied from class:ValidationError
Returns a point near the error.- Overrides:
getLocation
in classValidationError
- Returns:
- a point near the error
-
-