| java.lang.Object org.geotools.validation.DefaultFeatureValidation org.geotools.validation.spatial.LineNoSelfOverlappingValidation
LineNoSelfOverlappingValidation | public class LineNoSelfOverlappingValidation extends DefaultFeatureValidation (Code) | | 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.
author: bowens, Refractions Research, Inc. author: $Author: jive $ (last modification) version: $Id: LineNoSelfOverlappingValidation.java 27862 2007-11-12 19:51:19Z desruisseaux $ |
Method Summary | |
public int | getPriority() Override getPriority. | public boolean | validate(Feature feature, FeatureType type, ValidationResults results) Tests to see if a LineString overlaps itself.
It does this by breaking up the LineString into two point segments then
intersects them all. |
LineNoSelfOverlappingValidation | public LineNoSelfOverlappingValidation()(Code) | | LineNoSelfOverlappingFeatureValidation constructor.
Description
|
|
|