|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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,
javax.xml.stream.XMLStreamWriter writer)
Creates a new GML3GeometryWriter instance, with no default crs, the default formatter and no simple
feature support. |
|
GML3GeometryWriter(GMLVersion version,
javax.xml.stream.XMLStreamWriter writer,
CRS outputCrs,
CoordinateFormatter formatter,
boolean exportSf,
java.util.Set<java.lang.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, javax.xml.stream.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, javax.xml.stream.XMLStreamWriter writer, CRS outputCrs, CoordinateFormatter formatter, boolean exportSf, java.util.Set<java.lang.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 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 javax.xml.stream.XMLStreamException, UnknownCRSException, TransformationException
export
in interface GMLGeometryWriter
geometry
- the Geometry
to be exported
javax.xml.stream.XMLStreamException
- if an error occured writing to the xml stream
UnknownCRSException
TransformationException
public void exportReference(GeometryReference<Geometry> geometryRef) throws javax.xml.stream.XMLStreamException, UnknownCRSException, TransformationException
exportReference
in interface GMLGeometryWriter
javax.xml.stream.XMLStreamException
UnknownCRSException
TransformationException
public void exportMultiGeometry(MultiGeometry<? extends Geometry> geometry) throws javax.xml.stream.XMLStreamException, UnknownCRSException, TransformationException
exportMultiGeometry
in interface GMLGeometryWriter
geometry
- a MultiGeometry
object
javax.xml.stream.XMLStreamException
- if an error occured writing to the xml stream
UnknownCRSException
TransformationException
public void exportPoint(Point point) throws javax.xml.stream.XMLStreamException, UnknownCRSException, TransformationException
exportPoint
in interface GMLGeometryWriter
point
- a Point
object
javax.xml.stream.XMLStreamException
- if an error occured writing to the xml stream
UnknownCRSException
TransformationException
public void exportCurve(Curve curve) throws javax.xml.stream.XMLStreamException, UnknownCRSException, TransformationException
exportCurve
in interface GMLGeometryWriter
curve
- a Curve
object
javax.xml.stream.XMLStreamException
- if an error occured writing to the xml stream
UnknownCRSException
TransformationException
public void exportSurface(Surface surface) throws javax.xml.stream.XMLStreamException, UnknownCRSException, TransformationException
exportSurface
in interface GMLGeometryWriter
surface
- a Surface
object
javax.xml.stream.XMLStreamException
- if an error occured writing to the xml stream
UnknownCRSException
TransformationException
public void exportTriangulatedSurface(TriangulatedSurface triangSurface) throws javax.xml.stream.XMLStreamException, UnknownCRSException, TransformationException
exportTriangulatedSurface
in interface GMLGeometryWriter
triangSurface
- a TriangulatedSurface
object
javax.xml.stream.XMLStreamException
- if an error occured writing to the xml stream
UnknownCRSException
TransformationException
public void exportTin(Tin tin) throws javax.xml.stream.XMLStreamException, UnknownCRSException, TransformationException
exportTin
in interface GMLGeometryWriter
tin
- a Tin
object
javax.xml.stream.XMLStreamException
- if an error occured writing to the xml stream
UnknownCRSException
TransformationException
public void exportSolid(Solid solid) throws javax.xml.stream.XMLStreamException, UnknownCRSException, TransformationException
exportSolid
in interface GMLGeometryWriter
solid
- a Solid
object
javax.xml.stream.XMLStreamException
- if an error occured writing to the xml stream
UnknownCRSException
TransformationException
public void exportRing(Ring ring) throws javax.xml.stream.XMLStreamException, UnknownCRSException, TransformationException
exportRing
in interface GMLGeometryWriter
ring
- a Ring
object
javax.xml.stream.XMLStreamException
- if an error occured writing to the xml stream
UnknownCRSException
TransformationException
public void exportCompositeCurve(CompositeCurve compositeCurve) throws javax.xml.stream.XMLStreamException, UnknownCRSException, TransformationException
exportCompositeCurve
in interface GMLGeometryWriter
compositeCurve
- the CompositeCurve
object
javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
- if an error occured writing to the xml stream
TransformationException
UnknownCRSException
UnknownCRSException
TransformationException
public void exportCompositeSurface(CompositeSurface compositeSurface) throws javax.xml.stream.XMLStreamException, UnknownCRSException, TransformationException
exportCompositeSurface
in interface GMLGeometryWriter
compositeSurface
- the CompositeSurface
object
javax.xml.stream.XMLStreamException
- if an error occured writing to the xml stream
UnknownCRSException
TransformationException
public void exportCompositeSolid(CompositeSolid compositeSolid) throws javax.xml.stream.XMLStreamException, UnknownCRSException, TransformationException
exportCompositeSolid
in interface GMLGeometryWriter
compositeSolid
- the CompositeSolid
object
javax.xml.stream.XMLStreamException
- if an error occured writing to the xml stream
UnknownCRSException
TransformationException
public void exportEnvelope(Envelope envelope) throws javax.xml.stream.XMLStreamException, UnknownCRSException, TransformationException
Envelope
via the XMLStreamWriter given when the class was constructed
exportEnvelope
in interface GMLGeometryWriter
envelope
- the envelope object
javax.xml.stream.XMLStreamException
- if an error occured writing to the xml stream
UnknownCRSException
TransformationException
protected void exportSurfacePatch(SurfacePatch surfacePatch) throws javax.xml.stream.XMLStreamException, UnknownCRSException, TransformationException
SurfacePatch
via the XMLStreamWriter given when the class was constructed
surfacePatch
- a surface patch object
javax.xml.stream.XMLStreamException
- if an error occured writing to the xml stream
UnknownCRSException
TransformationException
public void exportCompositeGeometry(CompositeGeometry<GeometricPrimitive> geometryComplex) throws javax.xml.stream.XMLStreamException, UnknownCRSException, TransformationException
exportCompositeGeometry
in interface GMLGeometryWriter
geometryComplex
- the CompositeGeometry
object
javax.xml.stream.XMLStreamException
- if an error occured writing to the xml stream
UnknownCRSException
TransformationException
protected void exportCurveSegment(CurveSegment curveSeg) throws javax.xml.stream.XMLStreamException, UnknownCRSException, TransformationException
curveSeg
- a CurveSegment
object
javax.xml.stream.XMLStreamException
- if an error occured writing to the xml stream
UnknownCRSException
TransformationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |