org.deegree_impl.gml
Class GMLFactory

java.lang.Object
  extended byorg.deegree_impl.gml.GMLFactory

public class GMLFactory
extends java.lang.Object

class containing factory methods for creating GML-Objects from DOM-Elements and GM_XXXX geometries.

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

Version:
17.02.2002

Author:
Andreas Poth

Constructor Summary
GMLFactory()
           
 
Method Summary
static GMLFeature createGMLFeature(org.w3c.dom.Document doc, Feature feature)
          creates a GMLFeature from a XML Element
static GMLFeature createGMLFeature(org.w3c.dom.Element element)
          creates a GMLFeature from a XML Element
static GMLFeatureCollection createGMLFeatureCollection(org.w3c.dom.Element element)
          creates a GMLFeatureCollection from a XML Element
static GMLFeatureCollection createGMLFeatureCollection(java.lang.String name)
          creates an empty GMLFeatureCollection
static GMLGeometry createGMLGeometry(org.w3c.dom.Element element)
          creates a GMLGeometry from a DOM Element
static GMLGeometry createGMLGeometry(GM_Object geo)
          creates a GMLGeometry from a GM_Object
private static GMLLineString createGMLLineString(GM_Curve geo, GMLDocument_Impl doc)
          creates a GMLLineString from a GM_Curve
private static GMLMultiLineString createGMLMultiLineString(GM_MultiCurve geo, GMLDocument_Impl doc)
          creates a GMLMultiLineString from a GM_MultiCurve
private static GMLMultiPoint createGMLMultiPoint(GM_MultiPoint geo, GMLDocument_Impl doc)
          creates a GMLMultiPoint from a GM_MultiPoint
private static GMLMultiPolygon createGMLMultiPolygon(GM_MultiSurface geo, GMLDocument_Impl doc)
          creates a GMLMultiPolygon from a GM_MultiSurface
private static GMLPoint createGMLPoint(GM_Point geo, GMLDocument_Impl doc)
          creates a GMLPoint from a GM_Point
private static GMLPolygon createGMLPolygon(GM_Surface geo, GMLDocument_Impl doc)
          creates a GMLPolygon from a GM_Surface
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GMLFactory

public GMLFactory()
Method Detail

createGMLGeometry

public static GMLGeometry createGMLGeometry(org.w3c.dom.Element element)
                                     throws GMLException
creates a GMLGeometry from a DOM Element

Parameters:
element - DOM Element containing a GMLGeometry
Throws:
GMLException

createGMLGeometry

public static GMLGeometry createGMLGeometry(GM_Object geo)
                                     throws GMLException
creates a GMLGeometry from a GM_Object

Parameters:
geo - geometry
Throws:
GMLException

createGMLPoint

private static GMLPoint createGMLPoint(GM_Point geo,
                                       GMLDocument_Impl doc)
                                throws GMLException
creates a GMLPoint from a GM_Point

Parameters:
geo - point
Throws:
GMLException

createGMLLineString

private static GMLLineString createGMLLineString(GM_Curve geo,
                                                 GMLDocument_Impl doc)
                                          throws GMLException
creates a GMLLineString from a GM_Curve

Parameters:
geo - GM_Curve
Throws:
GMLException

createGMLPolygon

private static GMLPolygon createGMLPolygon(GM_Surface geo,
                                           GMLDocument_Impl doc)
                                    throws GMLException
creates a GMLPolygon from a GM_Surface

Parameters:
geo - GM_Surface
Throws:
GMLException

createGMLMultiPoint

private static GMLMultiPoint createGMLMultiPoint(GM_MultiPoint geo,
                                                 GMLDocument_Impl doc)
                                          throws GMLException
creates a GMLMultiPoint from a GM_MultiPoint

Parameters:
geo - GM_MultiPoint
Throws:
GMLException

createGMLMultiLineString

private static GMLMultiLineString createGMLMultiLineString(GM_MultiCurve geo,
                                                           GMLDocument_Impl doc)
                                                    throws GMLException
creates a GMLMultiLineString from a GM_MultiCurve

Parameters:
geo - GM_MultiCurve
Throws:
GMLException

createGMLMultiPolygon

private static GMLMultiPolygon createGMLMultiPolygon(GM_MultiSurface geo,
                                                     GMLDocument_Impl doc)
                                              throws GMLException
creates a GMLMultiPolygon from a GM_MultiSurface

Parameters:
geo - GM_MultiSurface
Throws:
GMLException

createGMLFeature

public static GMLFeature createGMLFeature(org.w3c.dom.Element element)
                                   throws GMLException
creates a GMLFeature from a XML Element

Throws:
GMLException

createGMLFeature

public static GMLFeature createGMLFeature(org.w3c.dom.Document doc,
                                          Feature feature)
                                   throws GMLException
creates a GMLFeature from a XML Element

Throws:
GMLException

createGMLFeatureCollection

public static GMLFeatureCollection createGMLFeatureCollection(java.lang.String name)
creates an empty GMLFeatureCollection


createGMLFeatureCollection

public static GMLFeatureCollection createGMLFeatureCollection(org.w3c.dom.Element element)
                                                       throws GMLException
creates a GMLFeatureCollection from a XML Element

Throws:
GMLException