|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.gml.geometry.GML2GeometryWriter
public class GML2GeometryWriter
Generates GML 2.1 representations from Geometry objects.
| Constructor Summary | |
|---|---|
GML2GeometryWriter(javax.xml.stream.XMLStreamWriter writer)
Creates a new GML2GeometryWriter instance. |
|
GML2GeometryWriter(javax.xml.stream.XMLStreamWriter writer,
CRS outputCrs,
CoordinateFormatter formatter,
java.util.Set<java.lang.String> exportedIds)
Creates a new GML2GeometryWriter instance. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GML2GeometryWriter(javax.xml.stream.XMLStreamWriter writer)
GML2GeometryWriter instance.
writer - the XMLStreamWriter that is used to serialize the GML, must not be null
public GML2GeometryWriter(javax.xml.stream.XMLStreamWriter writer,
CRS outputCrs,
CoordinateFormatter formatter,
java.util.Set<java.lang.String> exportedIds)
GML2GeometryWriter instance.
writer - the XMLStreamWriter that is used to serialize the GML, must not be nulloutputCrs - 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 |
|---|
public void export(Geometry geometry)
throws javax.xml.stream.XMLStreamException,
TransformationException,
UnknownCRSException
GMLGeometryWriter
export in interface GMLGeometryWriterjavax.xml.stream.XMLStreamException
TransformationException
UnknownCRSException
public void exportPoint(Point point)
throws javax.xml.stream.XMLStreamException,
TransformationException,
UnknownCRSException
exportPoint in interface GMLGeometryWriterpoint -
javax.xml.stream.XMLStreamException
UnknownCRSException
TransformationException
public void exportPolygon(Polygon polygon)
throws javax.xml.stream.XMLStreamException,
TransformationException,
UnknownCRSException
polygon -
javax.xml.stream.XMLStreamException
UnknownCRSException
TransformationException
public void exportLinearRing(Ring linearRing)
throws javax.xml.stream.XMLStreamException,
TransformationException,
UnknownCRSException
linearRing -
javax.xml.stream.XMLStreamException
UnknownCRSException
TransformationException
public void exportLineString(Curve curve)
throws javax.xml.stream.XMLStreamException,
TransformationException,
UnknownCRSException
curve -
javax.xml.stream.XMLStreamException
UnknownCRSException
TransformationException
public void exportEnvelope(Envelope envelope)
throws javax.xml.stream.XMLStreamException,
TransformationException,
UnknownCRSException
exportEnvelope in interface GMLGeometryWriterenvelope -
javax.xml.stream.XMLStreamException
UnknownCRSException
TransformationException
public void exportMultiGeometry(MultiGeometry<? extends Geometry> multiGeometry)
throws javax.xml.stream.XMLStreamException,
TransformationException,
UnknownCRSException
exportMultiGeometry in interface GMLGeometryWritermultiGeometry -
javax.xml.stream.XMLStreamException
UnknownCRSException
TransformationException
public void exportMultiPoint(MultiPoint multiPoint)
throws javax.xml.stream.XMLStreamException,
TransformationException,
UnknownCRSException
multiPoint -
javax.xml.stream.XMLStreamException
UnknownCRSException
TransformationException
public void exportMultiLineString(MultiLineString multiLineString)
throws javax.xml.stream.XMLStreamException,
TransformationException,
UnknownCRSException
multiLineString -
javax.xml.stream.XMLStreamException
UnknownCRSException
TransformationException
public void exportMultiLineString(MultiCurve multiCurve)
throws javax.xml.stream.XMLStreamException,
TransformationException,
UnknownCRSException
multiCurve -
javax.xml.stream.XMLStreamException
UnknownCRSException
TransformationException
public void exportMultiPolygon(MultiPolygon multiPolygon)
throws javax.xml.stream.XMLStreamException,
TransformationException,
UnknownCRSException
multiPolygon -
javax.xml.stream.XMLStreamException
UnknownCRSException
TransformationException
public void exportMultiPolygon(MultiSurface multiSurface)
throws javax.xml.stream.XMLStreamException,
TransformationException,
UnknownCRSException
multiPolygon -
javax.xml.stream.XMLStreamException
UnknownCRSException
TransformationExceptionpublic void exportCompositeCurve(CompositeCurve compositeCurve)
exportCompositeCurve in interface GMLGeometryWriterpublic void exportCompositeGeometry(CompositeGeometry<GeometricPrimitive> geometryComplex)
exportCompositeGeometry in interface GMLGeometryWriterpublic void exportCompositeSolid(CompositeSolid compositeSolid)
exportCompositeSolid in interface GMLGeometryWriterpublic void exportCompositeSurface(CompositeSurface compositeSurface)
exportCompositeSurface in interface GMLGeometryWriter
public void exportCurve(Curve curve)
throws javax.xml.stream.XMLStreamException,
TransformationException,
UnknownCRSException
exportCurve in interface GMLGeometryWriterjavax.xml.stream.XMLStreamException
TransformationException
UnknownCRSExceptionpublic void exportReference(GeometryReference<Geometry> geometryRef)
exportReference in interface GMLGeometryWriter
public void exportRing(Ring ring)
throws javax.xml.stream.XMLStreamException,
TransformationException,
UnknownCRSException
exportRing in interface GMLGeometryWriterjavax.xml.stream.XMLStreamException
TransformationException
UnknownCRSExceptionpublic void exportSolid(Solid solid)
exportSolid in interface GMLGeometryWriter
public void exportSurface(Surface surface)
throws javax.xml.stream.XMLStreamException,
TransformationException,
UnknownCRSException
exportSurface in interface GMLGeometryWriterjavax.xml.stream.XMLStreamException
TransformationException
UnknownCRSExceptionpublic void exportTin(Tin tin)
exportTin in interface GMLGeometryWriterpublic void exportTriangulatedSurface(TriangulatedSurface triangSurface)
exportTriangulatedSurface in interface GMLGeometryWriter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||