|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.gml.geometry.GML3GeometryWriter
public class GML3GeometryWriter
Generates GML 3 (3.0/3.1/3.2) representations from Geometry
objects.
This class is not thread-safe.
Constructor Summary | |
---|---|
GML3GeometryWriter(GMLVersion version,
XMLStreamWriter writer)
Creates a new GML3GeometryWriter instance, with no default crs, the default formatter and no simple
feature support. |
|
GML3GeometryWriter(GMLVersion version,
XMLStreamWriter writer,
CRS outputCrs,
CoordinateFormatter formatter,
boolean exportSf,
Set<String> exportedIds)
Creates a new GML3GeometryWriter instance. |
Method Summary | |
---|---|
void |
export(Geometry geometry)
Exporting a geometry via the XMLStreamWriter given when the class was constructed |
void |
exportCompositeCurve(CompositeCurve compositeCurve)
Exporting a composite curve via the XMLStreamWriter given when the class was constructed |
void |
exportCompositeGeometry(CompositeGeometry<GeometricPrimitive> geometryComplex)
Exporting a composite geometry via the XMLStreamWriter given when the class was constructed |
void |
exportCompositeSolid(CompositeSolid compositeSolid)
Exporting a composite solid via the XMLStreamWriter given when the class was constructed |
void |
exportCompositeSurface(CompositeSurface compositeSurface)
Exporting a composite surface via the XMLStreamWriter given when the class was constructed |
void |
exportCurve(Curve curve)
Exporting a curve via the XMLStreamWriter given when the class was constructed |
protected void |
exportCurveSegment(CurveSegment curveSeg)
Exporting a curve segment via the XMLStreamWriter given when the class was constructed |
void |
exportEnvelope(Envelope envelope)
Exporting an Envelope via the XMLStreamWriter given when the class was constructed |
void |
exportMultiGeometry(MultiGeometry<? extends Geometry> geometry)
Exporting a multi-geometry via the XMLStreamWriter given when the class was constructed |
void |
exportPoint(Point point)
Exporting a point via the XMLStreamWriter given when the class was constructed |
void |
exportReference(GeometryReference<Geometry> geometryRef)
|
void |
exportRing(Ring ring)
Exporting a ring via the XMLStreamWriter given when the class was constructed |
void |
exportSolid(Solid solid)
Exporting a solid via the XMLStreamWriter given when the class was constructed |
void |
exportSurface(Surface surface)
Exporting a surface via the XMLStreamWriter given when the class was constructed |
protected void |
exportSurfacePatch(SurfacePatch surfacePatch)
Exporting a SurfacePatch via the XMLStreamWriter given when the class was constructed |
void |
exportTin(Tin tin)
Exporting a tin via the XMLStreamWriter given when the class was constructed |
void |
exportTriangulatedSurface(TriangulatedSurface triangSurface)
Exporting a triangulated surface via the XMLStreamWriter given when the class was constructed |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GML3GeometryWriter(GMLVersion version, XMLStreamWriter writer)
GML3GeometryWriter
instance, with no default crs, the default formatter and no simple
feature support.
version
- either GMLVersion.GML_30
, GMLVersion.GML_31
or GMLVersion.GML_32
writer
- the XMLStreamWriter
that is used to serialize the GML, must not be null
public GML3GeometryWriter(GMLVersion version, XMLStreamWriter writer, CRS outputCrs, CoordinateFormatter formatter, boolean exportSf, Set<String> exportedIds)
GML3GeometryWriter
instance.
version
- either GMLVersion.GML_30
, GMLVersion.GML_31
or GMLVersion.GML_32
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)exportSf
- if true, the generated GML must to conform to the GML-SF profile (only simple geometries are used and
they are exported without id attributes)exportedIds
- for the creation of xlinks, may be null
Method Detail |
---|
public void export(Geometry geometry) throws XMLStreamException, UnknownCRSException, TransformationException
export
in interface GMLGeometryWriter
geometry
- the Geometry
to be exported
XMLStreamException
- if an error occured writing to the xml stream
UnknownCRSException
TransformationException
public void exportReference(GeometryReference<Geometry> geometryRef) throws XMLStreamException, UnknownCRSException, TransformationException
exportReference
in interface GMLGeometryWriter
XMLStreamException
UnknownCRSException
TransformationException
public void exportMultiGeometry(MultiGeometry<? extends Geometry> geometry) throws XMLStreamException, UnknownCRSException, TransformationException
exportMultiGeometry
in interface GMLGeometryWriter
geometry
- a MultiGeometry
object
XMLStreamException
- if an error occured writing to the xml stream
UnknownCRSException
TransformationException
public void exportPoint(Point point) throws XMLStreamException, UnknownCRSException, TransformationException
exportPoint
in interface GMLGeometryWriter
point
- a Point
object
XMLStreamException
- if an error occured writing to the xml stream
UnknownCRSException
TransformationException
public void exportCurve(Curve curve) throws XMLStreamException, UnknownCRSException, TransformationException
exportCurve
in interface GMLGeometryWriter
curve
- a Curve
object
XMLStreamException
- if an error occured writing to the xml stream
UnknownCRSException
TransformationException
public void exportSurface(Surface surface) throws XMLStreamException, UnknownCRSException, TransformationException
exportSurface
in interface GMLGeometryWriter
surface
- a Surface
object
XMLStreamException
- if an error occured writing to the xml stream
UnknownCRSException
TransformationException
public void exportTriangulatedSurface(TriangulatedSurface triangSurface) throws XMLStreamException, UnknownCRSException, TransformationException
exportTriangulatedSurface
in interface GMLGeometryWriter
triangSurface
- a TriangulatedSurface
object
XMLStreamException
- if an error occured writing to the xml stream
UnknownCRSException
TransformationException
public void exportTin(Tin tin) throws XMLStreamException, UnknownCRSException, TransformationException
exportTin
in interface GMLGeometryWriter
tin
- a Tin
object
XMLStreamException
- if an error occured writing to the xml stream
UnknownCRSException
TransformationException
public void exportSolid(Solid solid) throws XMLStreamException, UnknownCRSException, TransformationException
exportSolid
in interface GMLGeometryWriter
solid
- a Solid
object
XMLStreamException
- if an error occured writing to the xml stream
UnknownCRSException
TransformationException
public void exportRing(Ring ring) throws XMLStreamException, UnknownCRSException, TransformationException
exportRing
in interface GMLGeometryWriter
ring
- a Ring
object
XMLStreamException
- if an error occured writing to the xml stream
UnknownCRSException
TransformationException
public void exportCompositeCurve(CompositeCurve compositeCurve) throws XMLStreamException, UnknownCRSException, TransformationException
exportCompositeCurve
in interface GMLGeometryWriter
compositeCurve
- the CompositeCurve
object
XMLStreamException
XMLStreamException
- if an error occured writing to the xml stream
TransformationException
UnknownCRSException
UnknownCRSException
TransformationException
public void exportCompositeSurface(CompositeSurface compositeSurface) throws XMLStreamException, UnknownCRSException, TransformationException
exportCompositeSurface
in interface GMLGeometryWriter
compositeSurface
- the CompositeSurface
object
XMLStreamException
- if an error occured writing to the xml stream
UnknownCRSException
TransformationException
public void exportCompositeSolid(CompositeSolid compositeSolid) throws XMLStreamException, UnknownCRSException, TransformationException
exportCompositeSolid
in interface GMLGeometryWriter
compositeSolid
- the CompositeSolid
object
XMLStreamException
- if an error occured writing to the xml stream
UnknownCRSException
TransformationException
public void exportEnvelope(Envelope envelope) throws XMLStreamException, UnknownCRSException, TransformationException
Envelope
via the XMLStreamWriter given when the class was constructed
exportEnvelope
in interface GMLGeometryWriter
envelope
- the envelope object
XMLStreamException
- if an error occured writing to the xml stream
UnknownCRSException
TransformationException
protected void exportSurfacePatch(SurfacePatch surfacePatch) throws XMLStreamException, UnknownCRSException, TransformationException
SurfacePatch
via the XMLStreamWriter given when the class was constructed
surfacePatch
- a surface patch object
XMLStreamException
- if an error occured writing to the xml stream
UnknownCRSException
TransformationException
public void exportCompositeGeometry(CompositeGeometry<GeometricPrimitive> geometryComplex) throws XMLStreamException, UnknownCRSException, TransformationException
exportCompositeGeometry
in interface GMLGeometryWriter
geometryComplex
- the CompositeGeometry
object
XMLStreamException
- if an error occured writing to the xml stream
UnknownCRSException
TransformationException
protected void exportCurveSegment(CurveSegment curveSeg) throws XMLStreamException, UnknownCRSException, TransformationException
curveSeg
- a CurveSegment
object
XMLStreamException
- if an error occured writing to the xml stream
UnknownCRSException
TransformationException
|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |