|
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.geometry.io.WKTWriter
public class WKTWriter
Writes Geometry
objects as Well-Known Text (WKT).
Nested Class Summary | |
---|---|
static class |
WKTWriter.WKTFlag
The flag is used to specify which geometric operations the database is capable of |
Constructor Summary | |
---|---|
WKTWriter(Set<WKTWriter.WKTFlag> flags,
CoordinateFormatter formatter)
Create a wkt writer with the given flags and formatter. |
Method Summary | |
---|---|
void |
setFlags(Set<WKTWriter.WKTFlag> flags)
|
void |
setFormatter(CoordinateFormatter formatter)
|
void |
setLinearizedControlPoints(int linearizedControlPoints)
Controlpoints that can be set for the linearization prozess. |
void |
setLinearizer(CurveLinearizer linearizer)
|
static String |
write(Geometry geom)
Export the given geometry to wkt, without using any WKTWriter.WKTFlag s. |
static void |
write(Geometry geom,
Writer writer)
Export the given geometry to wkt, without using any WKTWriter.WKTFlag s. |
void |
writeCircularString(Writer writer)
|
void |
writeCompositeCurve(CompositeCurve geometry,
Writer writer)
Writes a COMPOSITE-/COMPOUND CURVE |
void |
writeCompositeGeometry(CompositeGeometry<GeometricPrimitive> geometry,
Writer writer)
Writes the compositeGeometry. |
void |
writeCurve(Curve geometry,
Writer writer)
Writes a CURVE |
void |
writeCurveGeometry(Curve geometry,
Writer writer)
Writes a CURVE |
void |
writeEnvelope(Envelope envelope,
Writer writer)
TODO also for 3D |
void |
writeGeometricPrimitive(GeometricPrimitive geometry,
Writer writer)
Writes a geometric primitive |
void |
writeGeometry(Geometry geometry,
Writer writer)
|
void |
writeLinearRing(LinearRing geometry,
Writer writer)
Writes a linearRing. |
void |
writeLineString(LineString geometry,
Writer writer)
Writes a LineString. |
void |
writeMultiCurve(MultiCurve geometry,
Writer writer)
Writes a multiCurve. |
void |
writeMultiGeometry(MultiGeometry<? extends Geometry> geometry,
Writer writer)
Writes a multiGeometry. |
void |
writeMultiGeometryGeometry(MultiGeometry<? extends Geometry> geometry,
Writer writer)
Writes the multiGeometry. |
void |
writeMultiLineString(MultiLineString geometry,
Writer writer)
Writes the multiLineString. |
void |
writeMultiPoint(MultiPoint geometry,
Writer writer)
Writes the multiPoint. |
void |
writeMultiPolygon(MultiPolygon geometry,
Writer writer)
Writes the multiPolygon. |
void |
writeMultiSolid(MultiSolid geometry,
Writer writer)
Writes a multiSolid. |
void |
writeMultiSurface(MultiSurface geometry,
Writer writer)
Writes a multiSurface. |
void |
writePoint(Point geometry,
Writer writer)
Writes the POINT |
void |
writePolygon(Polygon geometry,
Writer writer)
Writes the POLYGON |
void |
writeRing(Ring geometry,
Writer writer)
Writes a ring. |
void |
writeSolid(Solid geometry,
Writer writer)
|
void |
writeSurface(Surface geometry,
Writer writer)
|
void |
writeSurfaceGeometry(Surface geometry,
Writer writer)
|
void |
writeSurfacePatch(Surface geometry,
Writer writer)
|
void |
writeTin(Tin geometry,
Writer writer)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WKTWriter(Set<WKTWriter.WKTFlag> flags, CoordinateFormatter formatter)
flags
- signaling the capabilities of this writer, if null
only some geometries can be exported
(all dialects are disabled).formatter
- to use, if null
the default decimal formatter with 5 decimals is used.Method Detail |
---|
public void setFlags(Set<WKTWriter.WKTFlag> flags)
flags
- the flags to setpublic void setLinearizer(CurveLinearizer linearizer)
linearizer
- public void setFormatter(CoordinateFormatter formatter)
formatter
- the formatter to setpublic void setLinearizedControlPoints(int linearizedControlPoints)
linearizedControlPoints
- the linearizedControlPoints to setpublic void writeGeometry(Geometry geometry, Writer writer) throws IOException
geometry
- that has to be writtenwriter
- that is used
IOException
public void writeGeometricPrimitive(GeometricPrimitive geometry, Writer writer) throws IOException
geometry
- writer
-
IOException
public void writePoint(Point geometry, Writer writer) throws IOException
geometry
- writer
-
IOException
public void writeSolid(Solid geometry, Writer writer)
geometry
- writer
- public void writeSurface(Surface geometry, Writer writer) throws IOException
geometry
- writer
-
IOException
public void writeTin(Tin geometry, Writer writer)
geometry
- public void writeSurfaceGeometry(Surface geometry, Writer writer) throws IOException
geometry
- writer
-
IOException
public void writeSurfacePatch(Surface geometry, Writer writer) throws IOException
geometry
- writer
-
IOException
public void writePolygon(Polygon geometry, Writer writer) throws IOException
geometry
- writer
-
IOException
public void writeCurve(Curve geometry, Writer writer) throws IOException
geometry
- writer
-
IOException
public void writeCompositeCurve(CompositeCurve geometry, Writer writer) throws IOException
geometry
- writer
-
IOException
public void writeCurveGeometry(Curve geometry, Writer writer) throws IOException
geometry
- writer
-
IOException
public void writeLineString(LineString geometry, Writer writer) throws IOException
geometry
- writer
-
IOException
public void writeRing(Ring geometry, Writer writer) throws IOException
geometry
- writer
-
IOException
public void writeLinearRing(LinearRing geometry, Writer writer) throws IOException
geometry
- writer
-
IOException
public void writeMultiGeometry(MultiGeometry<? extends Geometry> geometry, Writer writer) throws IOException
geometry
- writer
-
IOException
public void writeMultiSolid(MultiSolid geometry, Writer writer)
geometry
- writer
- public void writeMultiSurface(MultiSurface geometry, Writer writer)
geometry
- writer
- public void writeMultiCurve(MultiCurve geometry, Writer writer) throws IOException
geometry
- writer
-
IOException
public void writeMultiGeometryGeometry(MultiGeometry<? extends Geometry> geometry, Writer writer)
geometry
- writer
- public void writeMultiPolygon(MultiPolygon geometry, Writer writer) throws IOException
geometry
- writer
-
IOException
public void writeMultiLineString(MultiLineString geometry, Writer writer) throws IOException
geometry
- writer
-
IOException
public void writeMultiPoint(MultiPoint geometry, Writer writer) throws IOException
geometry
- writer
-
IOException
public void writeCompositeGeometry(CompositeGeometry<GeometricPrimitive> geometry, Writer writer)
geometry
- writer
- public void writeCircularString(Writer writer) throws IOException
writer
-
IOException
public void writeEnvelope(Envelope envelope, Writer writer) throws IOException
envelope
-
IOException
public static String write(Geometry geom)
WKTWriter.WKTFlag
s. The writing is done to a StringWriter,
which should be handled with care.
geom
- to export.
null
public static void write(Geometry geom, Writer writer) throws IOException, NullPointerException
WKTWriter.WKTFlag
s. The writing is done using the given writer
instance, if no writer instance is given (null
) a NullPointerException
will be thrown.
geom
- to export, if null
the method will return.writer
- to write to.
IOException
- if an error occurs while using the writer.
NullPointerException
- if the writer is null
|
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 |