nl.idgis.giserver.spatialoperations
Class GeometryCard

java.lang.Object
  extended by nl.idgis.giserver.spatialoperations.GeometryCard

public class GeometryCard
extends java.lang.Object

This class will the container for the gml object acting as the instigator for intersections with features geometries. The intersection is instigated by the method intersection. If there was a buffer specified the intersection the intersection is also done for the buffered variant. The results will be registered in this class. Before a new intersection is done the registered values must be reset.

Author:
bretelerjj

Constructor Summary
GeometryCard(org.deegree.model.spatialschema.Geometry geom, java.lang.String id)
           
 
Method Summary
 void addBuffer(double buffer)
          Specify a buffer to this card geometry object.
 void addGeometry(org.deegree.model.spatialschema.Geometry geom)
           
 double getAreaBufferedIntersected()
           
 double getAreaIntersected()
           
 org.deegree.model.spatialschema.Envelope getEnvelope()
           
 org.deegree.model.spatialschema.Envelope getEnvelopeMax(org.deegree.model.spatialschema.Envelope envelope)
           
 org.deegree.model.spatialschema.Geometry getGeom()
           
 org.deegree.model.spatialschema.Geometry getGeomBuffered()
           
 org.deegree.model.spatialschema.Geometry getGeomBufferedIntersected()
           
 GeometryReportMode getGeometryReportMode()
           
 org.deegree.model.spatialschema.Geometry getGeomIntersected()
           
 java.lang.String getId()
           
 java.lang.String getIdBuffered()
           
 double getLengthBufferedIntersected()
           
 double getLengthIntersected()
           
 double getPerimeterBufferedIntersected()
           
 double getPerimeterIntersected()
           
 boolean hasGeometry()
           
 boolean haveIntersectionGeometry()
           
 void intersection(org.deegree.model.spatialschema.Geometry geomIntersect)
          Determine the intersection between two geometries.
 void resetIntersection()
          Reset registered values from intersection
 void setGeometryReportMode(GeometryReportMode geometryReportMode)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeometryCard

public GeometryCard(org.deegree.model.spatialschema.Geometry geom,
                    java.lang.String id)
Method Detail

addBuffer

public void addBuffer(double buffer)
               throws org.deegree.model.spatialschema.GeometryException
Specify a buffer to this card geometry object. Specifying a buffer will leads to intersection calculation done also for this geometry object extended with the buffer.

Parameters:
buffer - size of the buffer.
Throws:
org.deegree.model.spatialschema.GeometryException

addGeometry

public void addGeometry(org.deegree.model.spatialschema.Geometry geom)

hasGeometry

public boolean hasGeometry()

getEnvelope

public org.deegree.model.spatialschema.Envelope getEnvelope()

intersection

public void intersection(org.deegree.model.spatialschema.Geometry geomIntersect)
                  throws org.deegree.model.spatialschema.GeometryException
Determine the intersection between two geometries. The intersection is also done for the buffered variant if the buffer was specified. The result will be stored in this card container.

Parameters:
geomIntersect - geometry intersecting object
Throws:
org.deegree.model.spatialschema.GeometryException

getGeometryReportMode

public GeometryReportMode getGeometryReportMode()

setGeometryReportMode

public void setGeometryReportMode(GeometryReportMode geometryReportMode)

getGeomIntersected

public org.deegree.model.spatialschema.Geometry getGeomIntersected()

getGeomBufferedIntersected

public org.deegree.model.spatialschema.Geometry getGeomBufferedIntersected()

getEnvelopeMax

public org.deegree.model.spatialschema.Envelope getEnvelopeMax(org.deegree.model.spatialschema.Envelope envelope)
                                                        throws org.deegree.model.spatialschema.GeometryException
Throws:
org.deegree.model.spatialschema.GeometryException

haveIntersectionGeometry

public boolean haveIntersectionGeometry()

getId

public java.lang.String getId()

getIdBuffered

public java.lang.String getIdBuffered()

getAreaIntersected

public double getAreaIntersected()

getPerimeterIntersected

public double getPerimeterIntersected()

getLengthIntersected

public double getLengthIntersected()

getAreaBufferedIntersected

public double getAreaBufferedIntersected()

getPerimeterBufferedIntersected

public double getPerimeterBufferedIntersected()

getLengthBufferedIntersected

public double getLengthBufferedIntersected()

resetIntersection

public void resetIntersection()
Reset registered values from intersection


getGeom

public org.deegree.model.spatialschema.Geometry getGeom()

getGeomBuffered

public org.deegree.model.spatialschema.Geometry getGeomBuffered()