org.geotools.validation.spatial
Class LineNotTouchingPolygonInteriorValidation

Object
  extended by DefaultIntegrityValidation
      extended by LinePolygonAbstractValidation
          extended by LineNotTouchingPolygonInteriorValidation
All Implemented Interfaces:
IntegrityValidation, Validation

public class LineNotTouchingPolygonInteriorValidation
extends LinePolygonAbstractValidation

PolygonNotOverlappingLineValidation purpose.

Checks that the line is not touching the interior of the polygon.

Author:
dzwiers, Refractions Research, Inc., $Author: dmzwiers $ (last modification)

Field Summary
 
Fields inherited from interface Validation
ALL, PRIORITY_COMPLEX, PRIORITY_INVOLVED, PRIORITY_SIMPLE, PRIORITY_TRIVIAL
 
Constructor Summary
LineNotTouchingPolygonInteriorValidation()
          PolygonNotOverlappingLineValidation constructor.
 
Method Summary
 boolean validate(Map layers, Envelope envelope, ValidationResults results)
          Check that the line is not touching the interior of the polygon.
 
Methods inherited from class LinePolygonAbstractValidation
getLineTypeRef, getRestrictedPolygonTypeRef, getTypeRefs, setLineTypeRef, setRestrictedPolygonTypeRef
 
Methods inherited from class DefaultIntegrityValidation
getDescription, getName, getPriority, setDescription, setName, validate
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineNotTouchingPolygonInteriorValidation

public LineNotTouchingPolygonInteriorValidation()
PolygonNotOverlappingLineValidation constructor.

Description

Method Detail

validate

public boolean validate(Map layers,
                        Envelope envelope,
                        ValidationResults results)
                 throws Exception
Check that the line is not touching the interior of the polygon.

Parameters:
layers - Map of SimpleFeatureSource 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:
Exception - DOCUMENT ME!


Copyright © 1996-2014 Geotools. All Rights Reserved.