|
||||||||||
| 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_32writer - 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_32writer - 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)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 GMLGeometryWritergeometry - 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 GMLGeometryWriterjavax.xml.stream.XMLStreamException
UnknownCRSException
TransformationException
public void exportMultiGeometry(MultiGeometry<? extends Geometry> geometry)
throws javax.xml.stream.XMLStreamException,
UnknownCRSException,
TransformationException
exportMultiGeometry in interface GMLGeometryWritergeometry - 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 GMLGeometryWriterpoint - 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 GMLGeometryWritercurve - 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 GMLGeometryWritersurface - 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 GMLGeometryWritertriangSurface - 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 GMLGeometryWritertin - 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 GMLGeometryWritersolid - 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 GMLGeometryWriterring - 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 GMLGeometryWritercompositeCurve - 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 GMLGeometryWritercompositeSurface - 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 GMLGeometryWritercompositeSolid - 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 GMLGeometryWriterenvelope - 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 GMLGeometryWritergeometryComplex - 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 | |||||||||