org.deegree_impl.services.wfs.db
Class PointDBDataStoreOutputFC

java.lang.Object
  extended byorg.deegree_impl.services.wfs.db.PointDBDataStoreOutputFC
All Implemented Interfaces:
DataStoreOutputFormat

public class PointDBDataStoreOutputFC
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.19 $ $Date: 2004/03/15 16:55:29 $

Author:
Andreas Poth

Field Summary
(package private)  ConvenienceCSFactory csFactory
           
 
Constructor Summary
PointDBDataStoreOutputFC()
           
 
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
 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 format(java.util.HashMap map, ParameterList parameter, Filter filter)
          formats the data store at the values of the HashMap into one single data structure.
private  int getColumnIndex(java.lang.String[] columnNames, java.lang.String name)
          returns the index of the column with the submitted name. if the column isn't contained within the columnNames array -1 will be returned
private  GM_Object getGeometry(java.lang.String x, java.lang.String y, java.lang.String crs)
          returns a GM_Point object created from the submitted x, y value and coordinate reference system.
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
 

Field Detail

csFactory

ConvenienceCSFactory csFactory
Constructor Detail

PointDBDataStoreOutputFC

public PointDBDataStoreOutputFC()
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

format

public java.lang.Object format(java.util.HashMap map,
                               ParameterList parameter,
                               Filter filter)
                        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


getColumnIndex

private int getColumnIndex(java.lang.String[] columnNames,
                           java.lang.String name)
returns the index of the column with the submitted name. if the column isn't contained within the columnNames array -1 will be returned


getGeometry

private GM_Object getGeometry(java.lang.String x,
                              java.lang.String y,
                              java.lang.String crs)
returns a GM_Point object created from the submitted x, y value and coordinate reference system.