Tabnine Logo
WKTWriter.appendPolygonText
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: com.vividsolutions/jts

/**
 *  Converts a <code>Polygon</code> to &lt;Polygon Tagged 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 appendPolygonTaggedText(Polygon polygon, int level, Writer writer)
 throws IOException
{
 writer.write("POLYGON ");
 appendPolygonText(polygon, level, false, writer);
}
origin: com.vividsolutions/jts

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

/**
 *  Converts a <code>Polygon</code> to &lt;Polygon Tagged 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 appendPolygonTaggedText(Polygon polygon, int level, Writer writer)
 throws IOException
{
 writer.write("POLYGON ");
 appendPolygonText(polygon, level, false, writer);
}
origin: com.vividsolutions/jts-core

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

Javadoc

Converts a Polygon to <Polygon 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.
  • 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

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSupportFragmentManager (FragmentActivity)
  • getApplicationContext (Context)
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Option (scala)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now