|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectDefaultFeatureValidation
LineNoSelfOverlappingValidation
public class 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 Validation |
|---|
ALL, PRIORITY_COMPLEX, PRIORITY_INVOLVED, PRIORITY_SIMPLE, PRIORITY_TRIVIAL |
| Constructor Summary | |
|---|---|
LineNoSelfOverlappingValidation()
LineNoSelfOverlappingFeatureValidation constructor. |
|
| Method Summary | |
|---|---|
int |
getPriority()
Override getPriority. |
boolean |
validate(SimpleFeature feature,
SimpleFeatureType type,
ValidationResults results)
Tests to see if a LineString overlaps itself. |
| Methods inherited from class DefaultFeatureValidation |
|---|
getDefaultLineString, getDescription, getName, getTypeRef, getTypeRefs, setDescription, setName, setTypeRef |
| Methods inherited from class 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 ValidationgetPriority in class DefaultFeatureValidationValidation.getPriority()
public boolean validate(SimpleFeature feature,
SimpleFeatureType 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 FeatureValidationvalidate in class DefaultFeatureValidationfeature - 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 | |||||||||