org.deegree_impl.services.wfs.bna
Class BNADataStore.CGetFeature

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.deegree_impl.services.wfs.WFSMainLoop
          extended byorg.deegree_impl.services.wfs.AbstractGetFeature
              extended byorg.deegree_impl.services.wfs.bna.BNADataStore.CGetFeature
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
BNADataStore

private class BNADataStore.CGetFeature
extends AbstractGetFeature

inner interface defining the processing of a getFeature request


Field Summary
 
Fields inherited from class org.deegree_impl.services.wfs.AbstractGetFeature
config
 
Fields inherited from class org.deegree_impl.services.wfs.WFSMainLoop
parent, request
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
BNADataStore.CGetFeature(BNADataStore parent, OGCWebServiceRequest request)
          Creates a new CGetFeature object.
 
Method Summary
private  Feature createFeature(BNAFeature bnafeature, CS_CoordinateSystem crs)
          Creates a Feature from a BNAFeature
private  java.lang.Object[] extractFirstBBOX(ComplexFilter filter)
          Traverses the Filter-tree and returns the first BBOX-Operation that is found and a Filter that is equal to the given one minus the BBOX-Operation.
private  CS_CoordinateSystem getCRS(FeatureType ft)
           
private  Feature[] getFeatures(java.lang.String typeName, Filter filter, int startPosition, int maxFeatures)
          reads features from a bna file
private  GM_Object getGMObject(BNAFeature bnafeature, CS_CoordinateSystem crs)
          Builds a GM_Object from a BNAFeature.
protected  OGCWebServiceResponse[] performRequest(OGCWebServiceRequest request)
           
 
Methods inherited from class org.deegree_impl.services.wfs.AbstractGetFeature
createResponse, getAffectedFeatureTypes, getAffectedFields
 
Methods inherited from class org.deegree_impl.services.wfs.WFSMainLoop
run
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BNADataStore.CGetFeature

public BNADataStore.CGetFeature(BNADataStore parent,
                                OGCWebServiceRequest request)
Creates a new CGetFeature object.

Parameters:
parent -
request -
Method Detail

performRequest

protected OGCWebServiceResponse[] performRequest(OGCWebServiceRequest request)
Specified by:
performRequest in class WFSMainLoop
Parameters:
request -
Returns:

extractFirstBBOX

private java.lang.Object[] extractFirstBBOX(ComplexFilter filter)
                                     throws java.lang.Exception
Traverses the Filter-tree and returns the first BBOX-Operation that is found and a Filter that is equal to the given one minus the BBOX-Operation.

Parameters:
filter - search starts here
Returns:
[0]: GM_Envelope (BBOX), [1]: Filter
Throws:
java.lang.Exception

getFeatures

private Feature[] getFeatures(java.lang.String typeName,
                              Filter filter,
                              int startPosition,
                              int maxFeatures)
                       throws java.lang.Exception
reads features from a bna file

Throws:
java.lang.Exception

getCRS

private CS_CoordinateSystem getCRS(FeatureType ft)
Parameters:
ft -
Returns:

createFeature

private Feature createFeature(BNAFeature bnafeature,
                              CS_CoordinateSystem crs)
                       throws GM_Exception
Creates a Feature from a BNAFeature

Throws:
GM_Exception

getGMObject

private GM_Object getGMObject(BNAFeature bnafeature,
                              CS_CoordinateSystem crs)
                       throws GM_Exception
Builds a GM_Object from a BNAFeature. If the BNAFeature if composed by more than one geometry, the corresponding aggregate GM_Object will be built.

Throws:
GM_Exception