org.deegree_impl.services.wfs.sde
Class SDEDataStore.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.sde.SDEDataStore.CGetFeature
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
SDEDataStore

private class SDEDataStore.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
SDEDataStore.CGetFeature(SDEDataStore parent, OGCWebServiceRequest request)
          Creates a new CGetFeature object.
 
Method Summary
private  FeatureType createFeatureType(Table table, FeatureType ft, boolean spatialField)
           
private  java.lang.Object[] getDataFromSDE(WFSQuery query, java.lang.String[] cols)
          queries and retrieves data from a ArcSDE
private  Feature[] getFeatures(WFSQuery query, GM_Object[] deegree_gm_obj, Table table, int startPosition, int maxFeatures)
          reads features from a shape file
private  java.lang.String[] getQueryProperties(WFSQuery query, FeatureType ft)
          returns the name of the datastore fields (SDE table column names) that shall be returned by the query or null if all columns shall be returned
private  CS_CoordinateSystem getReferenceSystem(java.lang.String name)
          creates and returns a CRS by its name
private  SpatialQuery openSpatialQuery()
           
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

SDEDataStore.CGetFeature

public SDEDataStore.CGetFeature(SDEDataStore 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:

getQueryProperties

private java.lang.String[] getQueryProperties(WFSQuery query,
                                              FeatureType ft)
                                       throws java.lang.Exception
returns the name of the datastore fields (SDE table column names) that shall be returned by the query or null if all columns shall be returned

Throws:
java.lang.Exception

getDataFromSDE

private java.lang.Object[] getDataFromSDE(WFSQuery query,
                                          java.lang.String[] cols)
                                   throws java.lang.Exception
queries and retrieves data from a ArcSDE

Parameters:
query - query to perform
cols - columns to target
Throws:
java.lang.Exception

getFeatures

private Feature[] getFeatures(WFSQuery query,
                              GM_Object[] deegree_gm_obj,
                              Table table,
                              int startPosition,
                              int maxFeatures)
                       throws java.lang.Exception
reads features from a shape file

Throws:
java.lang.Exception

openSpatialQuery

private SpatialQuery openSpatialQuery()
                               throws java.lang.Exception
Throws:
java.lang.Exception

getReferenceSystem

private CS_CoordinateSystem getReferenceSystem(java.lang.String name)
creates and returns a CRS by its name


createFeatureType

private FeatureType createFeatureType(Table table,
                                      FeatureType ft,
                                      boolean spatialField)