nl.idgis.giserver
Class SpatialOperation

java.lang.Object
  extended by nl.idgis.giserver.SpatialOperation

public class SpatialOperation
extends java.lang.Object

This class housekeeping the spatial operations methods. A spatial operation is a operation on a collection from gml objects by a collection from gml objects. The first collection are the selected feature instances and the operator by is defined by the request. Till now the next operations are fulfilled :

- Split operation. The first matching feature geometry will be acting as the object in the operation.

- Intersect operation. A intersect check will be done for the given collection of objects in the request again the geometry for all feature instances obeying the given feature domain(s) in the request. The given collection may extended with a buffer area and in this case the output space will also be filled with the intersect results for these extended objects. The class methods will be static because the class behavior can be classified with a singleton pattern.

Author:
bretelerjj

Constructor Summary
SpatialOperation()
           
 
Method Summary
static void doRequest(org.w3c.dom.Document doc, GiServerConfiguration giServerConfiguration, org.w3c.dom.Document response)
          Processing a spatial operation request.
static void doRequestIntersect(org.w3c.dom.Element request, GiServerConfiguration giServerConfiguration, org.w3c.dom.Element intersectNode)
          Search for the intersections for given gml objects in the feature instances domain.
static void doRequestSplit(org.w3c.dom.Element request, GiServerConfiguration giServerConfiguration, org.w3c.dom.Element splitNode)
          Splitting a given feature instance object by a given gml object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpatialOperation

public SpatialOperation()
Method Detail

doRequest

public static void doRequest(org.w3c.dom.Document doc,
                             GiServerConfiguration giServerConfiguration,
                             org.w3c.dom.Document response)
                      throws java.lang.Exception
Processing a spatial operation request. The request is reflecting in a Dom tree. The output will also be given by a Dom tree document.

Parameters:
doc - input dom tree reflecting the request
giServerConfiguration - configuration info geoide server
response - Dom tree with error reports or operations results.
Throws:
java.lang.Exception

doRequestIntersect

public static void doRequestIntersect(org.w3c.dom.Element request,
                                      GiServerConfiguration giServerConfiguration,
                                      org.w3c.dom.Element intersectNode)
                               throws java.lang.Exception
Search for the intersections for given gml objects in the feature instances domain.

Parameters:
request - info reflecting in a dom tree.
giServerConfiguration - configuration info geoide server
intersectNode - dom tree entry to hook the response of this spatial operation
Throws:
java.lang.Exception

doRequestSplit

public static void doRequestSplit(org.w3c.dom.Element request,
                                  GiServerConfiguration giServerConfiguration,
                                  org.w3c.dom.Element splitNode)
                           throws java.lang.Exception
Splitting a given feature instance object by a given gml object. The given gml object must be a line(Curve) or polygon(Surface).
Missing (mandatory) tags or tag value(s) will be reported as errors.

Parameters:
request - info reflecting in a dom tree.
giServerConfiguration - configuration info geoide server
splitNode - dom tree entry to hook the results of this spatial operation
Throws:
java.lang.Exception