|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vividsolutions.jump.io.FUTURE_JTS_WKTWriter
public class FUTURE_JTS_WKTWriter
Outputs the textual representation of a Geometry.
The WKTWriter outputs coordinates rounded to the precision
model. No more than the maximum number of necessary decimal places will be
output.
The Well-known Text format is defined in the OpenGIS Simple Features Specification for SQL .
A non-standard "LINEARRING" tag is used for LinearRings. The WKT spec does not define a special tag for LinearRings. The standard tag to use is "LINESTRING".
| Constructor Summary | |
|---|---|
FUTURE_JTS_WKTWriter()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
stringOfChar(char ch,
int count)
Returns a String of repeated characters. |
java.lang.String |
write(com.vividsolutions.jts.geom.Geometry geometry)
Converts a Geometry to its Well-known Text representation. |
void |
write(com.vividsolutions.jts.geom.Geometry geometry,
java.io.Writer writer)
Converts a Geometry to its Well-known Text representation. |
java.lang.String |
writeFormatted(com.vividsolutions.jts.geom.Geometry geometry)
Same as write, but with newlines and spaces to make the
well-known text more readable. |
void |
writeFormatted(com.vividsolutions.jts.geom.Geometry geometry,
java.io.Writer writer)
Same as write, but with newlines and spaces to make the
well-known text more readable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FUTURE_JTS_WKTWriter()
| Method Detail |
|---|
public static java.lang.String stringOfChar(char ch,
int count)
String of repeated characters.
ch - the character to repeatcount - the number of times to repeat the character
String of characterspublic java.lang.String write(com.vividsolutions.jts.geom.Geometry geometry)
Geometry to its Well-known Text representation.
geometry - a Geometry to process
public void write(com.vividsolutions.jts.geom.Geometry geometry,
java.io.Writer writer)
throws java.io.IOException
Geometry to its Well-known Text representation.
geometry - a Geometry to processwriter - a writer to write the WKT string to (see the
OpenGIS Simple Features Specification)
java.io.IOExceptionpublic java.lang.String writeFormatted(com.vividsolutions.jts.geom.Geometry geometry)
write, but with newlines and spaces to make the
well-known text more readable.
geometry - a Geometry to process
public void writeFormatted(com.vividsolutions.jts.geom.Geometry geometry,
java.io.Writer writer)
throws java.io.IOException
write, but with newlines and spaces to make the
well-known text more readable.
geometry - a Geometry to processwriter - a writer to write the WKT string to (see the OpenGIS
Simple Features Specification), with newlines and spaces
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||