org.deegree_impl.services.wfs.oracle
Class DataStoreOutputFC

java.lang.Object
  extended byorg.deegree_impl.services.wfs.oracle.DataStoreOutputFC
All Implemented Interfaces:
DataStoreOutputFormat

public class DataStoreOutputFC
extends java.lang.Object
implements DataStoreOutputFormat

Implements the DataStoreOutputFormat interface to format the result of a data accessing class returned within the values of a HashMap as deegree feature collection

-----------------------------------------------------------------------

Version:
$Revision: 1.16 $ $Date: 2004/03/11 16:28:45 $

Author:
Andreas Poth

Constructor Summary
DataStoreOutputFC()
           
 
Method Summary
private  FeatureType createFeatureType(FeatureType ft, Table table)
          returns the feature type calculated from the column names and column types of the submitted table
private  GM_Object createGeometry(java.io.ByteArrayOutputStream bos, CS_CoordinateSystem srs)
          creates FeatureCollections from OGC WKBs
 java.lang.Object format(java.util.HashMap map, ParameterList parameter)
          formats the data store at the values of the HashMap into one single data structure.
 java.lang.Object formatTable(java.util.HashMap map, ParameterList parameter)
          formats the data store at the values of the HashMap into one single data structure.
private  int getGeometryType(byte[] wkb)
           
private  FeatureCollection tableToFC(Table table, ParameterList pl, FeatureCollection fc)
          creates a FeatureCollection from a Table. the method is recursivly called to create complex features.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataStoreOutputFC

public DataStoreOutputFC()
Method Detail

format

public java.lang.Object format(java.util.HashMap map,
                               ParameterList parameter)
                        throws java.lang.Exception
Description copied from interface: DataStoreOutputFormat
formats the data store at the values of the HashMap into one single data structure.

Specified by:
format in interface DataStoreOutputFormat
Throws:
java.lang.Exception
See Also:
DataStoreOutputFormat.format(java.util.HashMap, org.deegree.tools.ParameterList)

formatTable

public java.lang.Object formatTable(java.util.HashMap map,
                                    ParameterList parameter)
                             throws java.lang.Exception
formats the data store at the values of the HashMap into one single data structure.

Throws:
java.lang.Exception

tableToFC

private FeatureCollection tableToFC(Table table,
                                    ParameterList pl,
                                    FeatureCollection fc)
                             throws java.lang.Exception
creates a FeatureCollection from a Table. the method is recursivly called to create complex features.

Throws:
java.lang.Exception

createFeatureType

private FeatureType createFeatureType(FeatureType ft,
                                      Table table)
returns the feature type calculated from the column names and column types of the submitted table


createGeometry

private GM_Object createGeometry(java.io.ByteArrayOutputStream bos,
                                 CS_CoordinateSystem srs)
                          throws java.lang.Exception
creates FeatureCollections from OGC WKBs

Parameters:
bos - wkb datastructure
srs - spatial reference system used for each feature within the feature collection.
Throws:
java.lang.Exception

getGeometryType

private int getGeometryType(byte[] wkb)
                     throws GM_Exception
Throws:
GM_Exception