org.deegree_impl.services.wfs.bna
Class BNADataStoreOutputGML

java.lang.Object
  extended byorg.deegree_impl.services.wfs.bna.BNADataStoreOutputGML
All Implemented Interfaces:
DataStoreOutputFormat
Direct Known Subclasses:
BNADataStoreOutputXML

public class BNADataStoreOutputGML
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.6 $ $Date: 2004/02/23 07:47:51 $

Author:
Andreas Poth

Field Summary
private  double maxx
           
private  double maxy
           
private  double minx
           
private  double miny
           
 
Constructor Summary
BNADataStoreOutputGML()
           
 
Method Summary
 java.lang.Object format(java.util.HashMap map, ParameterList paramList)
          formats the data store at the values of the HashMap into one single data structure.
private  java.lang.String formatPropertyName(java.lang.String property)
          the method formats a slash-seperated property name like /cities/ID to a dot-seperated xml-valid name --> cities.ID
private  java.lang.String getGeometry(GM_Object o, java.lang.String crs)
           
private  java.lang.StringBuffer handleCurves(java.lang.String crs, GM_Object o)
           
private  java.lang.StringBuffer handleMultiCurves(java.lang.String crs, GM_Object o)
           
private  java.lang.StringBuffer handleMultiPoints(java.lang.String crs, GM_Object o)
           
private  java.lang.StringBuffer handleMultiSurfaces(java.lang.String crs, GM_Object o)
           
private  java.lang.StringBuffer handlePoints(java.lang.String crs, GM_Object o)
           
private  java.lang.StringBuffer handleSurfaces(java.lang.String crs, GM_Object o)
           
private  void updateBoundingBox(GM_Object geo)
          updates the bounding box of the GMLFeatureCollection.
private  org.w3c.dom.Document xsltTransformGetFeature(java.lang.String gml, java.lang.String xsltURL)
          transforms the response to a GetRecord/Feature request using a predefined xslt-stylesheet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maxx

private double maxx

maxy

private double maxy

minx

private double minx

miny

private double miny
Constructor Detail

BNADataStoreOutputGML

public BNADataStoreOutputGML()
Method Detail

format

public java.lang.Object format(java.util.HashMap map,
                               ParameterList paramList)
                        throws java.lang.Exception
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

formatPropertyName

private java.lang.String formatPropertyName(java.lang.String property)
the method formats a slash-seperated property name like /cities/ID to a dot-seperated xml-valid name --> cities.ID


getGeometry

private java.lang.String getGeometry(GM_Object o,
                                     java.lang.String crs)
                              throws GM_Exception
Parameters:
o -
crs -
Returns:
Throws:
GM_Exception

handlePoints

private java.lang.StringBuffer handlePoints(java.lang.String crs,
                                            GM_Object o)
Parameters:
crs -
o -
Returns:

handleCurves

private java.lang.StringBuffer handleCurves(java.lang.String crs,
                                            GM_Object o)
                                     throws GM_Exception
Parameters:
crs -
o -
Returns:
Throws:
GM_Exception

handleSurfaces

private java.lang.StringBuffer handleSurfaces(java.lang.String crs,
                                              GM_Object o)
                                       throws GM_Exception
Parameters:
crs -
o -
Returns:
Throws:
GM_Exception

handleMultiPoints

private java.lang.StringBuffer handleMultiPoints(java.lang.String crs,
                                                 GM_Object o)
Parameters:
crs -
o -
Returns:

handleMultiCurves

private java.lang.StringBuffer handleMultiCurves(java.lang.String crs,
                                                 GM_Object o)
                                          throws GM_Exception
Parameters:
crs -
o -
Returns:
Throws:
GM_Exception

handleMultiSurfaces

private java.lang.StringBuffer handleMultiSurfaces(java.lang.String crs,
                                                   GM_Object o)
                                            throws GM_Exception
Parameters:
crs -
o -
Returns:
Throws:
GM_Exception

updateBoundingBox

private void updateBoundingBox(GM_Object geo)
updates the bounding box of the GMLFeatureCollection.


xsltTransformGetFeature

private org.w3c.dom.Document xsltTransformGetFeature(java.lang.String gml,
                                                     java.lang.String xsltURL)
transforms the response to a GetRecord/Feature request using a predefined xslt-stylesheet