/** * Converts a <code>MultiPolygon</code> to <MultiPolygon Tagged Text> * format, then appends it to the writer. * * @param multiPolygon the <code>MultiPolygon</code> to process * @param useFormatting flag indicating that the output should be formatted * @param level the indentation level * @param writer the output writer to append to * @param formatter the <code>DecimalFormatter</code> to use to convert * from a precise coordinate to an external coordinate */ private void appendMultiPolygonTaggedText( MultiPolygon multiPolygon, EnumSet<Ordinate> outputOrdinates, boolean useFormatting, int level, Writer writer, DecimalFormat formatter) throws IOException { writer.write("MULTIPOLYGON "); appendOrdinateText(outputOrdinates, writer); appendMultiPolygonText(multiPolygon, outputOrdinates, useFormatting, level, writer, formatter); }
/** * Converts a <code>MultiPoint</code> to <MultiPoint Tagged Text> * format, then appends it to the writer. * * @param multipoint the <code>MultiPoint</code> to process * @param useFormatting flag indicating that the output should be formatted * @param level the indentation level * @param writer the output writer to append to * @param formatter the <code>DecimalFormatter</code> to use to convert * from a precise coordinate to an external coordinate */ private void appendMultiPointTaggedText(MultiPoint multipoint, EnumSet<Ordinate> outputOrdinates, boolean useFormatting, int level, Writer writer, DecimalFormat formatter) throws IOException { writer.write("MULTIPOINT "); appendOrdinateText(outputOrdinates, writer); appendMultiPointText(multipoint, outputOrdinates, useFormatting, level, writer, formatter); }
/** * Converts a <code>GeometryCollection</code> to <GeometryCollection * Tagged Text> format, then appends it to the writer. * * @param geometryCollection the <code>GeometryCollection</code> to process * @param useFormatting flag indicating that the output should be formatted * @param level the indentation level * @param writer the output writer to append to * @param formatter the <code>DecimalFormatter</code> to use to convert * from a precise coordinate to an external coordinate */ private void appendGeometryCollectionTaggedText( GeometryCollection geometryCollection, EnumSet<Ordinate> outputOrdinates, boolean useFormatting, int level, Writer writer, DecimalFormat formatter) throws IOException { writer.write("GEOMETRYCOLLECTION "); appendOrdinateText(outputOrdinates, writer); appendGeometryCollectionText(geometryCollection, outputOrdinates, useFormatting, level, writer, formatter); }
/** * Converts a <code>Polygon</code> to <Polygon Tagged Text> format, * then appends it to the writer. * * @param polygon the <code>Polygon</code> to process * @param useFormatting flag indicating that the output should be formatted * @param level the indentation level * @param writer the output writer to append to * @param formatter the <code>DecimalFormatter</code> to use to convert * from a precise coordinate to an external coordinate */ private void appendPolygonTaggedText( Polygon polygon, EnumSet<Ordinate> outputOrdinates, boolean useFormatting, int level, Writer writer, DecimalFormat formatter) throws IOException { writer.write("POLYGON "); appendOrdinateText(outputOrdinates, writer); appendPolygonText(polygon, outputOrdinates, useFormatting, level, false, writer, formatter); }
/** * Converts a <code>MultiLineString</code> to <MultiLineString Tagged * Text> format, then appends it to the writer. * * @param multiLineString the <code>MultiLineString</code> to process * @param useFormatting flag indicating that the output should be formatted * @param level the indentation level * @param writer the output writer to append to * @param formatter the <code>DecimalFormatter</code> to use to convert * from a precise coordinate to an external coordinate */ private void appendMultiLineStringTaggedText( MultiLineString multiLineString, EnumSet<Ordinate> outputOrdinates, boolean useFormatting, int level, Writer writer, DecimalFormat formatter) throws IOException { writer.write("MULTILINESTRING "); appendOrdinateText(outputOrdinates, writer); appendMultiLineStringText(multiLineString, outputOrdinates, useFormatting, level, /*false, */writer, formatter); }
/** * Converts a <code>Coordinate</code> to <Point Tagged Text> format, * then appends it to the writer. * * @param point the <code>Point</code> to process * @param useFormatting flag indicating that the output should be formatted * @param level the indentation level * @param writer the output writer to append to * @param formatter the formatter to use when writing numbers */ private void appendPointTaggedText( Point point, EnumSet<Ordinate> outputOrdinates, boolean useFormatting, int level, Writer writer, DecimalFormat formatter) throws IOException { writer.write("POINT "); appendOrdinateText(outputOrdinates, writer); appendSequenceText(point.getCoordinateSequence(), outputOrdinates, useFormatting, level, false, writer, formatter); }
/** * Converts a <code>LinearRing</code> to <LinearRing Tagged Text> * format, then appends it to the writer. * * @param linearRing the <code>LinearRing</code> to process * @param useFormatting flag indicating that the output should be formatted * @param level the indentation level * @param writer the output writer to append to * @param formatter the <code>DecimalFormatter</code> to use to convert * from a precise coordinate to an external coordinate */ private void appendLinearRingTaggedText( LinearRing linearRing, EnumSet<Ordinate> outputOrdinates, boolean useFormatting, int level, Writer writer, DecimalFormat formatter) throws IOException { writer.write("LINEARRING "); appendOrdinateText(outputOrdinates, writer); appendSequenceText(linearRing.getCoordinateSequence(), outputOrdinates, useFormatting, level, false, writer, formatter); }
/** * Converts a <code>LineString</code> to <LineString Tagged Text> * format, then appends it to the writer. * * @param lineString the <code>LineString</code> to process * @param useFormatting flag indicating that the output should be formatted * @param level the indentation level * @param writer the output writer to append to * @param formatter the <code>DecimalFormatter</code> to use to convert * from a precise coordinate to an external coordinate */ private void appendLineStringTaggedText( LineString lineString, EnumSet<Ordinate> outputOrdinates, boolean useFormatting, int level, Writer writer, DecimalFormat formatter) throws IOException { writer.write("LINESTRING "); appendOrdinateText(outputOrdinates, writer); appendSequenceText(lineString.getCoordinateSequence(), outputOrdinates, useFormatting, level, false, writer, formatter); }