|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.geotools.validation.DefaultFeatureValidation
org.geotools.validation.spatial.LineNoSelfIntersectValidation
LineNoSelfIntersectFeatureValidation purpose.
Tests to see if a geometry intersects itself. It does not detect if a segment of a LineString doubles back on itself for one segment, then terminates. A different validation is needed to test overlapping. Uses JTS' intersect routine.
Capabilities:
LineNoSelfIntersectFeatureValidation x = new LineNoSelfIntersectFeatureValidation("noSelfIntersectRoads", "Tests to see if a
geometry intersects itself", new String[] {"road"});
| Field Summary |
| Fields inherited from interface org.geotools.validation.Validation |
ALL, PRIORITY_COMPLEX, PRIORITY_INVOLVED, PRIORITY_SIMPLE, PRIORITY_TRIVIAL |
| Constructor Summary | |
LineNoSelfIntersectValidation()
LineNoSelfIntersectFeatureValidation constructor. |
|
| Method Summary | |
int |
getPriority()
Override getPriority. |
boolean |
validate(org.geotools.feature.Feature feature,
org.geotools.feature.FeatureType type,
ValidationResults results)
Override validate. |
| Methods inherited from class org.geotools.validation.DefaultFeatureValidation |
getDescription, getName, getTypeRef, getTypeRefs, setDescription, setName, setTypeRef |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LineNoSelfIntersectValidation()
Description
| Method Detail |
public int getPriority()
Sets the priority level of this validation. This is set by the programmer and is a measure of the expense of this plugin
getPriority in interface ValidationgetPriority in class DefaultFeatureValidationValidation.getPriority()
public boolean validate(org.geotools.feature.Feature feature,
org.geotools.feature.FeatureType type,
ValidationResults results)
Tests to see if a geometry intersects itself. It does not detect if a segment of a LineString doubles back on itself for one segment, then terminates. A different validation is needed to test overlapping. Uses JTS' intersect routine.
validate in interface FeatureValidationvalidate in class DefaultFeatureValidationfeature - The Feature to be validated.type - The FeatureTypeInfo of the feature.results - The storage for error messages.
org.geotools.validation.FeatureValidation#validate(org.geotools.feature.Feature, org.geotools.feature.FeatureTypeInfo, org.geotools.validation.ValidationResults)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||