org.deegree.geometry.validation
Class CoordinateValidityInspector

java.lang.Object
  extended by org.deegree.geometry.validation.CoordinateValidityInspector
All Implemented Interfaces:
GeometryInspector

public class CoordinateValidityInspector
extends Object
implements GeometryInspector

GeometryInspector that rejects geometries with coordinates that don't match the CRS of the geometry.

Version:
$Revision: 31641 $, $Date: 2011-08-24 21:24:55 +0200 (Wed, 24 Aug 2011) $
Author:
Markus Schneider , last edited by: $Author: mschneider $

Constructor Summary
CoordinateValidityInspector()
           
 
Method Summary
 CurveSegment inspect(CurveSegment segment)
          Invokes the inspection of the given CurveSegment.
 Geometry inspect(Geometry geom)
          Invokes the inspection of the given Geometry.
 Points inspect(Points points)
          Invokes the inspection of the given Points.
 SurfacePatch inspect(SurfacePatch patch)
          Invokes the inspection of the given SurfacePatch.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoordinateValidityInspector

public CoordinateValidityInspector()
Method Detail

inspect

public Geometry inspect(Geometry geom)
                 throws GeometryInspectionException
Description copied from interface: GeometryInspector
Invokes the inspection of the given Geometry.

Specified by:
inspect in interface GeometryInspector
Parameters:
geom - geometry to be inspected, never null
Returns:
inspected geometry, may be a different (repaired) instance, but must have exactly the same subinterface
Throws:
GeometryInspectionException - if the inspector rejects the Geometry

inspect

public CurveSegment inspect(CurveSegment segment)
                     throws GeometryInspectionException
Description copied from interface: GeometryInspector
Invokes the inspection of the given CurveSegment.

Specified by:
inspect in interface GeometryInspector
Parameters:
segment - segment to be inspected, never null
Returns:
inspected segment, may be a different (repaired) instance, but must be the exact same subinterface
Throws:
GeometryInspectionException - if the inspector rejects the CurveSegment

inspect

public SurfacePatch inspect(SurfacePatch patch)
                     throws GeometryInspectionException
Description copied from interface: GeometryInspector
Invokes the inspection of the given SurfacePatch.

Specified by:
inspect in interface GeometryInspector
Parameters:
patch - patch to be inspected, never null
Returns:
inspected patch, may be a different (repaired) instance, but must be the exact same subinterface
Throws:
GeometryInspectionException - if the inspector rejects the SurfacePatch

inspect

public Points inspect(Points points)
Description copied from interface: GeometryInspector
Invokes the inspection of the given Points.

Specified by:
inspect in interface GeometryInspector
Parameters:
points - points to be inspected, never null
Returns:
inspected patch, may be a different (repaired) instance


Copyright © 2011. All Rights Reserved.