org.geotools.validation.spatial
Class PolygonNoGapsValidation
Object
DefaultFeatureValidation
PolygonNoGapsValidation
- All Implemented Interfaces:
- FeatureValidation, Validation
public class PolygonNoGapsValidation
- extends DefaultFeatureValidation
PolygonNoGapsValidation purpose.
Ensures Polygon does not have gaps.
- Author:
- dzwiers, Refractions Research, Inc., $Author: dmzwiers $ (last modification)
- Module:
modules/extension/validation (gt-validation.jar)
Method Summary |
boolean |
validate(SimpleFeature feature,
SimpleFeatureType type,
ValidationResults results)
Ensure Polygon does not have gaps. |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PolygonNoGapsValidation
public PolygonNoGapsValidation()
- PolygonNoGapsValidation constructor.
Description
validate
public boolean validate(SimpleFeature feature,
SimpleFeatureType type,
ValidationResults results)
- Ensure Polygon does not have gaps.
- Specified by:
validate
in interface FeatureValidation
- Overrides:
validate
in class DefaultFeatureValidation
- Parameters:
feature
- the Feature to be validatedtype
- the FeatureType of the featureresults
- storage for the error and warning messages
- Returns:
- True if no features intersect. If they do then the validation
failed.
- Throws:
Exception
- DOCUMENT ME!- See Also:
org.geotools.validation.IntegrityValidation#validate(java.util.Map,
com.vividsolutions.jts.geom.Envelope,
org.geotools.validation.ValidationResults)
Copyright © 1996-2010 Geotools. All Rights Reserved.