|
||||||||||
| 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,
XMLStreamWriter writer)
Creates a new GML3GeometryWriter instance, with no default crs, the default formatter and no simple
feature support. |
|
GML3GeometryWriter(GMLVersion version,
XMLStreamWriter writer,
ICRS 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_32writer - the XMLStreamWriter that is used to serialize the GML, must not be null
public GML3GeometryWriter(GMLVersion version,
XMLStreamWriter writer,
ICRS outputCrs,
CoordinateFormatter formatter,
boolean exportSf,
Set<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 default DecimalCoordinateFormatter)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 XMLStreamException,
UnknownCRSException,
TransformationException
export in interface GMLGeometryWritergeometry - 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 GMLGeometryWriterXMLStreamException
UnknownCRSException
TransformationException
public void exportMultiGeometry(MultiGeometry<? extends Geometry> geometry)
throws XMLStreamException,
UnknownCRSException,
TransformationException
exportMultiGeometry in interface GMLGeometryWritergeometry - 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 GMLGeometryWriterpoint - 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 GMLGeometryWritercurve - 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 GMLGeometryWritersurface - 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 GMLGeometryWritertriangSurface - 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 GMLGeometryWritertin - 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 GMLGeometryWritersolid - 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 GMLGeometryWriterring - 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 GMLGeometryWritercompositeCurve - 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 GMLGeometryWritercompositeSurface - 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 GMLGeometryWritercompositeSolid - 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 GMLGeometryWriterenvelope - 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 GMLGeometryWritergeometryComplex - 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||