org.geotools.validation.spatial
Class PolygonNotOverlappingLineValidation

java.lang.Object
  extended by org.geotools.validation.DefaultIntegrityValidation
      extended by org.geotools.validation.spatial.PolygonLineAbstractValidation
          extended by org.geotools.validation.spatial.PolygonNotOverlappingLineValidation
All Implemented Interfaces:
IntegrityValidation, Validation

public class PolygonNotOverlappingLineValidation
extends PolygonLineAbstractValidation

PolygonNotOverlappingLineValidation purpose.

Checks that the polygon is not overlapping the line.

Version:
$Id: PolygonNotOverlappingLineValidation.java 30662 2008-06-12 21:44:16Z acuster $
Author:
dzwiers, Refractions Research, Inc., $Author: dmzwiers $ (last modification)

Field Summary
 
Fields inherited from interface org.geotools.validation.Validation
ALL, PRIORITY_COMPLEX, PRIORITY_INVOLVED, PRIORITY_SIMPLE, PRIORITY_TRIVIAL
 
Constructor Summary
PolygonNotOverlappingLineValidation()
          PolygonNotOverlappingLineValidation constructor.
 
Method Summary
 boolean validate(java.util.Map layers, com.vividsolutions.jts.geom.Envelope envelope, ValidationResults results)
          Check that the polygon is not overlapping the line.
 
Methods inherited from class org.geotools.validation.spatial.PolygonLineAbstractValidation
getPolygonTypeRef, getRestrictedLineTypeRef, getTypeRefs, setPolygonTypeRef, setRestrictedLineTypeRef
 
Methods inherited from class org.geotools.validation.DefaultIntegrityValidation
getDescription, getName, getPriority, setDescription, setName, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolygonNotOverlappingLineValidation

public PolygonNotOverlappingLineValidation()
PolygonNotOverlappingLineValidation constructor.

Description

Method Detail

validate

public boolean validate(java.util.Map layers,
                        com.vividsolutions.jts.geom.Envelope envelope,
                        ValidationResults results)
                 throws java.lang.Exception
Check that the polygon is not overlapping the line.

Parameters:
layers - Map of FeatureSource by "dataStoreID:typeName"
envelope - The bounding box that encloses the unvalidated data
results - Used to coallate results information
Returns:
true if all the features pass this test.
Throws:
java.lang.Exception - DOCUMENT ME!


Copyright © 1996-2010 Geotools. All Rights Reserved.