Codota Logo
WKTWriter.appendLineStringText
Code IndexAdd Codota to your IDE (free)

How to use
appendLineStringText
method
in
com.vividsolutions.jts.io.WKTWriter

Best Java code snippets using com.vividsolutions.jts.io.WKTWriter.appendLineStringText (Showing top 8 results out of 315)

  • Common ways to obtain WKTWriter
private void myMethod () {
WKTWriter w =
  • Codota Iconnew WKTWriter()
  • Smart code suggestions by Codota
}
origin: com.vividsolutions/jts

/**
 *  Converts a <code>LinearRing</code> to &lt;LinearRing Tagged Text&gt;
 *  format, then appends it to the writer.
 *
 *@param  linearRing  the <code>LinearRing</code> to process
 *@param  writer      the output writer to append to
 */
private void appendLinearRingTaggedText(LinearRing linearRing, int level, Writer writer)
 throws IOException
{
 writer.write("LINEARRING ");
 appendLineStringText(linearRing, level, false, writer);
}
origin: com.vividsolutions/jts

/**
 *  Converts a <code>LineString</code> to &lt;LineString Tagged Text&gt;
 *  format, then appends it to the writer.
 *
 *@param  lineString  the <code>LineString</code> to process
 *@param  writer      the output writer to append to
 */
private void appendLineStringTaggedText(LineString lineString, int level, Writer writer)
 throws IOException
{
 writer.write("LINESTRING ");
 appendLineStringText(lineString, level, false, writer);
}
origin: com.vividsolutions/jts

/**
 *  Converts a <code>Polygon</code> to &lt;Polygon Text&gt; format, then
 *  appends it to the writer.
 *
 *@param  polygon  the <code>Polygon</code> to process
 *@param  writer   the output writer to append to
 */
private void appendPolygonText(Polygon polygon, int level, boolean indentFirst, Writer writer)
 throws IOException
{
 if (polygon.isEmpty()) {
  writer.write("EMPTY");
 }
 else {
  if (indentFirst) indent(level, writer);
  writer.write("(");
  appendLineStringText(polygon.getExteriorRing(), level, false, writer);
  for (int i = 0; i < polygon.getNumInteriorRing(); i++) {
   writer.write(", ");
   appendLineStringText(polygon.getInteriorRingN(i), level + 1, true, writer);
  }
  writer.write(")");
 }
}
origin: com.vividsolutions/jts

/**
 *  Converts a <code>MultiLineString</code> to &lt;MultiLineString Text&gt;
 *  format, then appends it to the writer.
 *
 *@param  multiLineString  the <code>MultiLineString</code> to process
 *@param  writer           the output writer to append to
 */
private void appendMultiLineStringText(MultiLineString multiLineString, int level, boolean indentFirst,
  Writer writer)
 throws IOException
{
 if (multiLineString.isEmpty()) {
  writer.write("EMPTY");
 }
 else {
  int level2 = level;
  boolean doIndent = indentFirst;
  writer.write("(");
  for (int i = 0; i < multiLineString.getNumGeometries(); i++) {
   if (i > 0) {
    writer.write(", ");
    level2 = level + 1;
    doIndent = true;
   }
   appendLineStringText((LineString) multiLineString.getGeometryN(i), level2, doIndent, writer);
  }
  writer.write(")");
 }
}
origin: com.vividsolutions/jts-core

/**
 *  Converts a <code>LineString</code> to &lt;LineString Tagged Text&gt;
 *  format, then appends it to the writer.
 *
 *@param  lineString  the <code>LineString</code> to process
 *@param  writer      the output writer to append to
 */
private void appendLineStringTaggedText(LineString lineString, int level, Writer writer)
 throws IOException
{
 writer.write("LINESTRING ");
 appendLineStringText(lineString, level, false, writer);
}
origin: com.vividsolutions/jts-core

/**
 *  Converts a <code>LinearRing</code> to &lt;LinearRing Tagged Text&gt;
 *  format, then appends it to the writer.
 *
 *@param  linearRing  the <code>LinearRing</code> to process
 *@param  writer      the output writer to append to
 */
private void appendLinearRingTaggedText(LinearRing linearRing, int level, Writer writer)
 throws IOException
{
 writer.write("LINEARRING ");
 appendLineStringText(linearRing, level, false, writer);
}
origin: com.vividsolutions/jts-core

/**
 *  Converts a <code>Polygon</code> to &lt;Polygon Text&gt; format, then
 *  appends it to the writer.
 *
 *@param  polygon  the <code>Polygon</code> to process
 *@param  writer   the output writer to append to
 */
private void appendPolygonText(Polygon polygon, int level, boolean indentFirst, Writer writer)
 throws IOException
{
 if (polygon.isEmpty()) {
  writer.write("EMPTY");
 }
 else {
  if (indentFirst) indent(level, writer);
  writer.write("(");
  appendLineStringText(polygon.getExteriorRing(), level, false, writer);
  for (int i = 0; i < polygon.getNumInteriorRing(); i++) {
   writer.write(", ");
   appendLineStringText(polygon.getInteriorRingN(i), level + 1, true, writer);
  }
  writer.write(")");
 }
}
origin: com.vividsolutions/jts-core

/**
 *  Converts a <code>MultiLineString</code> to &lt;MultiLineString Text&gt;
 *  format, then appends it to the writer.
 *
 *@param  multiLineString  the <code>MultiLineString</code> to process
 *@param  writer           the output writer to append to
 */
private void appendMultiLineStringText(MultiLineString multiLineString, int level, boolean indentFirst,
  Writer writer)
 throws IOException
{
 if (multiLineString.isEmpty()) {
  writer.write("EMPTY");
 }
 else {
  int level2 = level;
  boolean doIndent = indentFirst;
  writer.write("(");
  for (int i = 0; i < multiLineString.getNumGeometries(); i++) {
   if (i > 0) {
    writer.write(", ");
    level2 = level + 1;
    doIndent = true;
   }
   appendLineStringText((LineString) multiLineString.getGeometryN(i), level2, doIndent, writer);
  }
  writer.write(")");
 }
}
com.vividsolutions.jts.ioWKTWriterappendLineStringText

Javadoc

Converts a LineString to <LineString Text> format, then appends it to the writer.

Popular methods of WKTWriter

  • write
    Converts a Geometry to its Well-known Text representation.
  • <init>
    Creates a writer that writes Geometrys with the given output dimension (2 or 3). If the specified ou
  • writeFormatted
    Converts a Geometry to its Well-known Text representation.
  • appendCoordinate
    Appends the i'th coordinate from the sequence to the writer
  • appendGeometryCollectionTaggedText
    Converts a GeometryCollection to format, then appends it to the wri
  • appendGeometryCollectionText
    Converts a GeometryCollection to format, then appends it to the writer.
  • appendGeometryTaggedText
    Converts a Geometry to format, then appends it to the writer.
  • appendLineStringTaggedText
    Converts a LineString to format, then appends it to the writer.
  • appendLinearRingTaggedText
    Converts a LinearRing to format, then appends it to the writer.
  • appendMultiLineStringTaggedText
    Converts a MultiLineString to format, then appends it to the writer.
  • appendMultiLineStringText
    Converts a MultiLineString to format, then appends it to the writer.
  • appendMultiPointTaggedText
    Converts a MultiPoint to format, then appends it to the writer.
  • appendMultiLineStringText,
  • appendMultiPointTaggedText,
  • appendMultiPointText,
  • appendMultiPolygonTaggedText,
  • appendMultiPolygonText,
  • appendPointTaggedText,
  • appendPointText,
  • appendPolygonTaggedText,
  • appendPolygonText

Popular in Java

  • Updating database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • runOnUiThread (Activity)
  • onRequestPermissionsResult (Fragment)
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now