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

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

Best Java code snippets using com.vividsolutions.jts.io.WKTWriter.indentCoords (Showing top 2 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>MultiPoint</code> to &lt;MultiPoint Text&gt; format, then
 *  appends it to the writer.
 *
 *@param  multiPoint  the <code>MultiPoint</code> to process
 *@param  writer      the output writer to append to
 */
private void appendMultiPointText(MultiPoint multiPoint, int level, Writer writer)
 throws IOException
{
 if (multiPoint.isEmpty()) {
  writer.write("EMPTY");
 }
 else {
  writer.write("(");
  for (int i = 0; i < multiPoint.getNumGeometries(); i++) {
   if (i > 0) {
    writer.write(", ");
    indentCoords(i, level + 1, writer);
   }
   writer.write("(");
   appendCoordinate(((Point) multiPoint.getGeometryN(i)).getCoordinate(), writer);
   writer.write(")");
  }
  writer.write(")");
 }
}
origin: com.vividsolutions/jts-core

/**
 *  Converts a <code>MultiPoint</code> to &lt;MultiPoint Text&gt; format, then
 *  appends it to the writer.
 *
 *@param  multiPoint  the <code>MultiPoint</code> to process
 *@param  writer      the output writer to append to
 */
private void appendMultiPointText(MultiPoint multiPoint, int level, Writer writer)
 throws IOException
{
 if (multiPoint.isEmpty()) {
  writer.write("EMPTY");
 }
 else {
  writer.write("(");
  for (int i = 0; i < multiPoint.getNumGeometries(); i++) {
   if (i > 0) {
    writer.write(", ");
    indentCoords(i, level + 1, writer);
   }
   writer.write("(");
   appendCoordinate(((Point) multiPoint.getGeometryN(i)).getCoordinate(), writer);
   writer.write(")");
  }
  writer.write(")");
 }
}
com.vividsolutions.jts.ioWKTWriterindentCoords

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.
  • appendLineStringText
    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.
  • appendMultiLineStringTaggedText,
  • appendMultiLineStringText,
  • appendMultiPointTaggedText,
  • appendMultiPointText,
  • appendMultiPolygonTaggedText,
  • appendMultiPolygonText,
  • appendPointTaggedText,
  • appendPointText,
  • appendPolygonTaggedText,
  • appendPolygonText

Popular in Java

  • Finding current android device location
  • getContentResolver (Context)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
  • JList (javax.swing)
  • JPanel (javax.swing)
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