|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.validation.DefaultFeatureValidation org.geotools.validation.spatial.LineNoSelfOverlappingValidation
Ensure the defaultGeometry does not overlap (only works for LineString).
Tests to see if a LineString overlaps itself. It does this by breaking up the LineString into two point segments then intersects them all. If a segment has both of its points on another segment, then they overlap. This is not true in all cases and this method has to be rewritten. If a segment spans two segments, this method will say that they do not overlap when clearly they do.
Field Summary |
Fields inherited from interface org.geotools.validation.Validation |
ALL, PRIORITY_COMPLEX, PRIORITY_INVOLVED, PRIORITY_SIMPLE, PRIORITY_TRIVIAL |
Constructor Summary | |
LineNoSelfOverlappingValidation()
LineNoSelfOverlappingFeatureValidation constructor. |
Method Summary | |
int |
getPriority()
Override getPriority. |
java.lang.String[] |
getTypeNames()
Implementation of getTypeNames. |
boolean |
validate(org.geotools.feature.Feature feature,
org.geotools.feature.FeatureType type,
ValidationResults results)
Tests to see if a LineString overlaps itself. |
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 LineNoSelfOverlappingValidation()
Description
Method Detail |
public int getPriority()
Sets the priority level of this validation.
getPriority
in interface Validation
getPriority
in class DefaultFeatureValidation
Validation.getPriority()
public java.lang.String[] getTypeNames()
org.geotools.validation.Validation#getTypeNames()
public boolean validate(org.geotools.feature.Feature feature, org.geotools.feature.FeatureType type, ValidationResults results)
It does this by breaking up the LineString into two point segments then intersects them all. If a segment has both of its points on another segment, then they overlap. This is not true in all cases and this method has to be rewritten. If a segment spans two segments, this method will say that they do not overlap when clearly they do.
validate
in interface FeatureValidation
validate
in class DefaultFeatureValidation
feature
- The Feature to be validatedtype
- The FeatureTypeInfo of the featureresults
- 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 |