deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.gml.geometry
Class GML2GeometryWriter

java.lang.Object
  extended by org.deegree.gml.geometry.GML2GeometryWriter
All Implemented Interfaces:
GMLGeometryWriter

public class GML2GeometryWriter
extends Object
implements GMLGeometryWriter

Generates GML 2.1 representations from Geometry objects.

Version:
$Revision: 22820 $, $Date: 2010-03-03 17:33:47 +0100 (Mi, 03 Mrz 2010) $
Author:
Andrei Ionita, last edited by: $Author: rbezema $

Constructor Summary
GML2GeometryWriter(XMLStreamWriter writer)
          Creates a new GML2GeometryWriter instance.
GML2GeometryWriter(XMLStreamWriter writer, CRS outputCrs, CoordinateFormatter formatter, Set<String> exportedIds)
          Creates a new GML2GeometryWriter instance.
 
Method Summary
 void export(Geometry geometry)
          Exports a general geometry.
 void exportCompositeCurve(CompositeCurve compositeCurve)
           
 void exportCompositeGeometry(CompositeGeometry<GeometricPrimitive> geometryComplex)
           
 void exportCompositeSolid(CompositeSolid compositeSolid)
           
 void exportCompositeSurface(CompositeSurface compositeSurface)
           
 void exportCurve(Curve curve)
           
 void exportEnvelope(Envelope envelope)
           
 void exportLinearRing(Ring linearRing)
           
 void exportLineString(Curve curve)
           
 void exportMultiGeometry(MultiGeometry<? extends Geometry> multiGeometry)
           
 void exportMultiLineString(MultiLineString multiLineString)
           
 void exportMultiPoint(MultiPoint multiPoint)
           
 void exportMultiPolygon(MultiPolygon multiPolygon)
           
 void exportPoint(Point point)
           
 void exportPolygon(Polygon polygon)
           
 void exportReference(GeometryReference<Geometry> geometryRef)
           
 void exportRing(Ring ring)
           
 void exportSolid(Solid solid)
           
 void exportSurface(Surface surface)
           
 void exportTin(Tin tin)
           
 void exportTriangulatedSurface(TriangulatedSurface triangSurface)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GML2GeometryWriter

public GML2GeometryWriter(XMLStreamWriter writer)
Creates a new GML2GeometryWriter instance.

Parameters:
writer - the XMLStreamWriter that is used to serialize the GML, must not be null

GML2GeometryWriter

public GML2GeometryWriter(XMLStreamWriter writer,
                          CRS outputCrs,
                          CoordinateFormatter formatter,
                          Set<String> exportedIds)
Creates a new GML2GeometryWriter instance.

Parameters:
writer - the XMLStreamWriter that is used to serialize the GML, must not be null
outputCrs - crs used for exported geometries, may be null (in that case, the crs of the geometries is used)
formatter - formatter to use for exporting coordinates, e.g. to limit the number of decimal places, may be null (use 5 decimal places)
exportedIds - may be null
Method Detail

export

public void export(Geometry geometry)
            throws XMLStreamException,
                   TransformationException,
                   UnknownCRSException
Description copied from interface: GMLGeometryWriter
Exports a general geometry. This is the method to call when there is no information about the geometry (the case switching is done here).

Specified by:
export in interface GMLGeometryWriter
Parameters:
geometry -
Throws:
XMLStreamException
UnknownCRSException
TransformationException

exportPoint

public void exportPoint(Point point)
                 throws XMLStreamException,
                        TransformationException,
                        UnknownCRSException
Specified by:
exportPoint in interface GMLGeometryWriter
Parameters:
point -
Throws:
XMLStreamException
UnknownCRSException
TransformationException

exportPolygon

public void exportPolygon(Polygon polygon)
                   throws XMLStreamException,
                          TransformationException,
                          UnknownCRSException
Parameters:
polygon -
Throws:
XMLStreamException
UnknownCRSException
TransformationException

exportLinearRing

public void exportLinearRing(Ring linearRing)
                      throws XMLStreamException,
                             TransformationException,
                             UnknownCRSException
Parameters:
linearRing -
Throws:
XMLStreamException
UnknownCRSException
TransformationException

exportLineString

public void exportLineString(Curve curve)
                      throws XMLStreamException,
                             TransformationException,
                             UnknownCRSException
Parameters:
curve -
Throws:
XMLStreamException
UnknownCRSException
TransformationException

exportEnvelope

public void exportEnvelope(Envelope envelope)
                    throws XMLStreamException,
                           TransformationException,
                           UnknownCRSException
Specified by:
exportEnvelope in interface GMLGeometryWriter
Parameters:
envelope -
Throws:
XMLStreamException
UnknownCRSException
TransformationException

exportMultiGeometry

public void exportMultiGeometry(MultiGeometry<? extends Geometry> multiGeometry)
                         throws XMLStreamException,
                                TransformationException,
                                UnknownCRSException
Specified by:
exportMultiGeometry in interface GMLGeometryWriter
Parameters:
multiGeometry -
Throws:
XMLStreamException
UnknownCRSException
TransformationException

exportMultiPoint

public void exportMultiPoint(MultiPoint multiPoint)
                      throws XMLStreamException,
                             TransformationException,
                             UnknownCRSException
Parameters:
multiPoint -
Throws:
XMLStreamException
UnknownCRSException
TransformationException

exportMultiLineString

public void exportMultiLineString(MultiLineString multiLineString)
                           throws XMLStreamException,
                                  TransformationException,
                                  UnknownCRSException
Parameters:
multiLineString -
Throws:
XMLStreamException
UnknownCRSException
TransformationException

exportMultiPolygon

public void exportMultiPolygon(MultiPolygon multiPolygon)
                        throws XMLStreamException,
                               TransformationException,
                               UnknownCRSException
Parameters:
multiPolygon -
Throws:
XMLStreamException
UnknownCRSException
TransformationException

exportCompositeCurve

public void exportCompositeCurve(CompositeCurve compositeCurve)
Specified by:
exportCompositeCurve in interface GMLGeometryWriter

exportCompositeGeometry

public void exportCompositeGeometry(CompositeGeometry<GeometricPrimitive> geometryComplex)
Specified by:
exportCompositeGeometry in interface GMLGeometryWriter

exportCompositeSolid

public void exportCompositeSolid(CompositeSolid compositeSolid)
Specified by:
exportCompositeSolid in interface GMLGeometryWriter

exportCompositeSurface

public void exportCompositeSurface(CompositeSurface compositeSurface)
Specified by:
exportCompositeSurface in interface GMLGeometryWriter

exportCurve

public void exportCurve(Curve curve)
Specified by:
exportCurve in interface GMLGeometryWriter

exportReference

public void exportReference(GeometryReference<Geometry> geometryRef)
Specified by:
exportReference in interface GMLGeometryWriter

exportRing

public void exportRing(Ring ring)
Specified by:
exportRing in interface GMLGeometryWriter

exportSolid

public void exportSolid(Solid solid)
Specified by:
exportSolid in interface GMLGeometryWriter

exportSurface

public void exportSurface(Surface surface)
Specified by:
exportSurface in interface GMLGeometryWriter

exportTin

public void exportTin(Tin tin)
Specified by:
exportTin in interface GMLGeometryWriter

exportTriangulatedSurface

public void exportTriangulatedSurface(TriangulatedSurface triangSurface)
Specified by:
exportTriangulatedSurface in interface GMLGeometryWriter

deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org

]]>