setDisallowedGeometryClasses(Collection disallowedGeometryClasses) Sets the Geometry classes that are not allowed in the dataset that will
be validated.
public void
setMinAngle(double minAngle) Sets the angle below which the minimum-angle check
will raise a validation error.
public void
setMinPolygonArea(double minPolygonArea) Sets the area below which the minimum-polygon-area check will raise a
validation error.
public void
setMinSegmentLength(double minSegmentLength) Sets the segment length below which the minimum-segment-length check
will raise a validation error.
public void setCheckingBasicTopology(boolean checkingBasicTopology)(Code)
Sets whether basic JTS validation should be performed
Parameters: checkingBasicTopology - whether basic JTS validation should be performed
setCheckingLineStringsSimple
public void setCheckingLineStringsSimple(boolean checkingLineStringsSimple)(Code)
Sets whether to enforce the constraint that LineStrings must be simple
Parameters: checkingLineStringsSimple - whether to enforce the constraint thatLineStrings must be simple
setCheckingMinAngle
public void setCheckingMinAngle(boolean checkingMinAngle)(Code)
Sets whether minimum angle should be checked.
Parameters: checkingMinAngle - whether to enforce the constraint thatangle should be no less than the minimum See Also:Validator.setMinAngle(double)
setCheckingMinPolygonArea
public void setCheckingMinPolygonArea(boolean checkingMinPolygonArea)(Code)
Sets whether minimum polygon area should be checked.
Parameters: checkingMinPolygonArea - whether to enforce the constraint thatarea should be no less than the minimum, for single polygons and polygonelements of GeometryCollections (including MultiPolygons) See Also:Validator.setMinPolygonArea(double)
setCheckingMinSegmentLength
public void setCheckingMinSegmentLength(boolean checkingMinSegmentLength)(Code)
Sets whether minimum segment length should be checked.
Parameters: checkingMinSegmentLength - whether to enforce the constraint thatsegment length should be no less than the minimum See Also:Validator.setMinSegmentLength(double)
setCheckingNoHoles
public void setCheckingNoHoles(boolean checkingNoHoles)(Code)
Sets whether polygons are not allowed to have holes
Parameters: checkingNoHoles - whether polygons are not allowed to have holes
setCheckingNoRepeatedConsecutivePoints
public void setCheckingNoRepeatedConsecutivePoints(boolean checkingNoRepeatedConsecutivePoints)(Code)
Sets whether consecutive points are not allowed to be the same
Parameters: checkingNoRepeatedConsecutivePoints - whether consecutive points arenot allowed to be the same
setCheckingPolygonOrientation
public void setCheckingPolygonOrientation(boolean checkingPolygonOrientation)(Code)
Sets whether polygon orientation should be checked
Parameters: checkingPolygonOrientation - whether to enforce the constraint thatpolygon shells should be oriented clockwise and holes should be orientedcounterclockwise
setDisallowedGeometryClasses
public void setDisallowedGeometryClasses(Collection disallowedGeometryClasses)(Code)
Sets the Geometry classes that are not allowed in the dataset that will
be validated.
Parameters: disallowedGeometryClasses - Geometry classes (Polygon.class, forexample) that are not allowed
Sets the angle below which the minimum-angle check
will raise a validation error.
Parameters: minAngle - the threshold used by the minimum-angle check, in degrees See Also:Validator.setCheckingMinAngle(boolean)
setMinPolygonArea
public void setMinPolygonArea(double minPolygonArea)(Code)
Sets the area below which the minimum-polygon-area check will raise a
validation error.
Parameters: minPolygonArea - the threshould used by the minimum-polygon-area check See Also:Validator.setCheckingMinPolygonArea(boolean)
setMinSegmentLength
public void setMinSegmentLength(double minSegmentLength)(Code)
Sets the segment length below which the minimum-segment-length check
will raise a validation error.
Parameters: minSegmentLength - the threshold used by the minimum-segment-lengthcheck See Also:Validator.setCheckingMinSegmentLength(boolean)
Checks a collection of features.
Parameters: features - the Feature's to validate a List of ValidationErrors; if all features are valid, the listwill be empty
validate
protected void validate(Feature feature, List validationErrors)(Code)
Checks a feature.
Parameters: feature - the Feature to validate Parameters: validationErrors - a List of ValidationError's to add to if the featureis not valid