org.kaboum.util
Class KaboumWKTWriter

java.lang.Object
  extended by org.kaboum.util.KaboumWKTWriter

public class KaboumWKTWriter
extends java.lang.Object


Constructor Summary
KaboumWKTWriter(KaboumPrecisionModel precisionModel)
          Constructor
 
Method Summary
protected  void appendCoordinate(KaboumCoordinate coordinate, java.io.Writer writer)
          Converts a Coordinate to <Point> format, then appends it to the writer.
protected  void appendGeometryCollectionTaggedText(KaboumGeometryCollection geometryCollection, java.io.Writer writer)
          Converts a GeometryCollection to <GeometryCollection Tagged Text> format, then appends it to the writer.
protected  void appendGeometryCollectionText(KaboumGeometryCollection geometryCollection, java.io.Writer writer)
          Converts a GeometryCollection to <GeometryCollectionText> format, then appends it to the writer.
protected  void appendGeometryTaggedText(KaboumGeometry geometry, java.io.Writer writer)
          Converts a Geometry to <Geometry Tagged Text> format, then appends it to the writer.
protected  void appendLineStringTaggedText(KaboumLineString lineString, java.io.Writer writer)
          Converts a LineString to <LineString Tagged Text> format, then appends it to the writer.
protected  void appendLineStringText(KaboumLineString lineString, java.io.Writer writer)
          Converts a LineString to <LineString Text> format, then appends it to the writer.
protected  void appendMultiLineStringTaggedText(KaboumMultiLineString multiLineString, java.io.Writer writer)
          Converts a MultiLineString to <MultiLineString Tagged Text> format, then appends it to the writer.
protected  void appendMultiLineStringText(KaboumMultiLineString multiLineString, java.io.Writer writer)
          Converts a MultiLineString to <MultiLineString Text> format, then appends it to the writer.
protected  void appendMultiPointTaggedText(KaboumMultiPoint multipoint, java.io.Writer writer)
          Converts a MultiPoint to <MultiPoint Tagged Text> format, then appends it to the writer.
protected  void appendMultiPointText(KaboumMultiPoint multiPoint, java.io.Writer writer)
          Converts a MultiPoint to <MultiPoint Text> format, then appends it to the writer.
protected  void appendMultiPolygonTaggedText(KaboumMultiPolygon multiPolygon, java.io.Writer writer)
          Converts a MultiPolygon to <MultiPolygon Tagged Text> format, then appends it to the writer.
protected  void appendMultiPolygonText(KaboumMultiPolygon multiPolygon, java.io.Writer writer)
          Converts a MultiPolygon to <MultiPolygon Text> format, then appends it to the writer.
protected  void appendPointTaggedText(KaboumCoordinate coordinate, java.io.Writer writer)
          Converts a Coordinate to <Point Tagged Text> format, then appends it to the writer.
protected  void appendPointText(KaboumCoordinate coordinate, java.io.Writer writer)
          Converts a Coordinate to <Point Text> format, then appends it to the writer.
protected  void appendPolygonTaggedText(KaboumPolygon polygon, java.io.Writer writer)
          Converts a Polygon to <Polygon Tagged Text> format, then appends it to the writer.
protected  void appendPolygonText(KaboumPolygon polygon, java.io.Writer writer)
          Converts a Polygon to <Polygon Text> format, then appends it to the writer.
 java.lang.String write(KaboumGeometry geometry)
          Converts a Geometry to its Well-known Text representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KaboumWKTWriter

public KaboumWKTWriter(KaboumPrecisionModel precisionModel)
Constructor

Method Detail

write

public java.lang.String write(KaboumGeometry geometry)
                       throws java.io.IOException
Converts a Geometry to its Well-known Text representation.

Parameters:
geometry - a Geometry to process
Returns:
a string (see the OpenGIS Simple Features Specification)
Throws:
java.io.IOException

appendGeometryTaggedText

protected void appendGeometryTaggedText(KaboumGeometry geometry,
                                        java.io.Writer writer)
                                 throws java.io.IOException
Converts a Geometry to <Geometry Tagged Text> format, then appends it to the writer.

Parameters:
geometry - the Geometry to process
writer - the output writer to append to
Throws:
java.io.IOException

appendPointTaggedText

protected void appendPointTaggedText(KaboumCoordinate coordinate,
                                     java.io.Writer writer)
                              throws java.io.IOException
Converts a Coordinate to <Point Tagged Text> format, then appends it to the writer.

Parameters:
coordinate - the Coordinate to process
writer - the output writer to append to
Throws:
java.io.IOException

appendLineStringTaggedText

protected void appendLineStringTaggedText(KaboumLineString lineString,
                                          java.io.Writer writer)
                                   throws java.io.IOException
Converts a LineString to <LineString Tagged Text> format, then appends it to the writer.

Parameters:
lineString - the LineString to process
writer - the output writer to append to
Throws:
java.io.IOException

appendPolygonTaggedText

protected void appendPolygonTaggedText(KaboumPolygon polygon,
                                       java.io.Writer writer)
                                throws java.io.IOException
Converts a Polygon to <Polygon Tagged Text> format, then appends it to the writer.

Parameters:
polygon - the Polygon to process
writer - the output writer to append to
Throws:
java.io.IOException

appendMultiPointTaggedText

protected void appendMultiPointTaggedText(KaboumMultiPoint multipoint,
                                          java.io.Writer writer)
                                   throws java.io.IOException
Converts a MultiPoint to <MultiPoint Tagged Text> format, then appends it to the writer.

Parameters:
multipoint - the MultiPoint to process
writer - the output writer to append to
Throws:
java.io.IOException

appendMultiLineStringTaggedText

protected void appendMultiLineStringTaggedText(KaboumMultiLineString multiLineString,
                                               java.io.Writer writer)
                                        throws java.io.IOException
Converts a MultiLineString to <MultiLineString Tagged Text> format, then appends it to the writer.

Parameters:
multiLineString - the MultiLineString to process
writer - the output writer to append to
Throws:
java.io.IOException

appendMultiPolygonTaggedText

protected void appendMultiPolygonTaggedText(KaboumMultiPolygon multiPolygon,
                                            java.io.Writer writer)
                                     throws java.io.IOException
Converts a MultiPolygon to <MultiPolygon Tagged Text> format, then appends it to the writer.

Parameters:
multiPolygon - the MultiPolygon to process
writer - the output writer to append to
Throws:
java.io.IOException

appendGeometryCollectionTaggedText

protected void appendGeometryCollectionTaggedText(KaboumGeometryCollection geometryCollection,
                                                  java.io.Writer writer)
                                           throws java.io.IOException
Converts a GeometryCollection to <GeometryCollection Tagged Text> format, then appends it to the writer.

Parameters:
geometryCollection - the GeometryCollection to process
writer - the output writer to append to
Throws:
java.io.IOException

appendPointText

protected void appendPointText(KaboumCoordinate coordinate,
                               java.io.Writer writer)
                        throws java.io.IOException
Converts a Coordinate to <Point Text> format, then appends it to the writer.

Parameters:
coordinate - the Coordinate to process
writer - the output writer to append to
Throws:
java.io.IOException

appendCoordinate

protected void appendCoordinate(KaboumCoordinate coordinate,
                                java.io.Writer writer)
                         throws java.io.IOException
Converts a Coordinate to <Point> format, then appends it to the writer.

Parameters:
coordinate - the Coordinate to process
writer - the output writer to append to
Throws:
java.io.IOException

appendLineStringText

protected void appendLineStringText(KaboumLineString lineString,
                                    java.io.Writer writer)
                             throws java.io.IOException
Converts a LineString to <LineString Text> format, then appends it to the writer.

Parameters:
lineString - the LineString to process
writer - the output writer to append to
Throws:
java.io.IOException

appendPolygonText

protected void appendPolygonText(KaboumPolygon polygon,
                                 java.io.Writer writer)
                          throws java.io.IOException
Converts a Polygon to <Polygon Text> format, then appends it to the writer.

Parameters:
polygon - the Polygon to process
writer - the output writer to append to
Throws:
java.io.IOException

appendMultiPointText

protected void appendMultiPointText(KaboumMultiPoint multiPoint,
                                    java.io.Writer writer)
                             throws java.io.IOException
Converts a MultiPoint to <MultiPoint Text> format, then appends it to the writer.

Parameters:
multiPoint - the MultiPoint to process
writer - the output writer to append to
Throws:
java.io.IOException

appendMultiLineStringText

protected void appendMultiLineStringText(KaboumMultiLineString multiLineString,
                                         java.io.Writer writer)
                                  throws java.io.IOException
Converts a MultiLineString to <MultiLineString Text> format, then appends it to the writer.

Parameters:
multiLineString - the MultiLineString to process
writer - the output writer to append to
Throws:
java.io.IOException

appendMultiPolygonText

protected void appendMultiPolygonText(KaboumMultiPolygon multiPolygon,
                                      java.io.Writer writer)
                               throws java.io.IOException
Converts a MultiPolygon to <MultiPolygon Text> format, then appends it to the writer.

Parameters:
multiPolygon - the MultiPolygon to process
writer - the output writer to append to
Throws:
java.io.IOException

appendGeometryCollectionText

protected void appendGeometryCollectionText(KaboumGeometryCollection geometryCollection,
                                            java.io.Writer writer)
                                     throws java.io.IOException
Converts a GeometryCollection to <GeometryCollectionText> format, then appends it to the writer.

Parameters:
geometryCollection - the GeometryCollection to process
writer - the output writer to append to
Throws:
java.io.IOException


Copyright © 2005 Kaboum team. All Rights Reserved.