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

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

Best Java code snippets using com.vividsolutions.jts.io.WKTWriter.writeFormatted (Showing top 12 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

/**
 *  Same as <code>write</code>, but with newlines and spaces to make the
 *  well-known text more readable.
 *
 *@param  geometry  a <code>Geometry</code> to process
 */
public void writeFormatted(Geometry geometry, Writer writer)
 throws IOException
{
 writeFormatted(geometry, true, writer);
}
/**
origin: com.vividsolutions/jts

/**
 *  Converts a <code>Geometry</code> to its Well-known Text representation.
 *
 *@param  geometry  a <code>Geometry</code> to process
 */
public void write(Geometry geometry, Writer writer)
 throws IOException
{
 writeFormatted(geometry, false, writer);
}
origin: com.vividsolutions/jts

/**
 *  Converts a <code>Geometry</code> to its Well-known Text representation.
 *
 *@param  geometry  a <code>Geometry</code> to process
 *@return           a <Geometry Tagged Text> string (see the OpenGIS Simple
 *      Features Specification)
 */
public String write(Geometry geometry)
{
 Writer sw = new StringWriter();
 try {
  writeFormatted(geometry, isFormatted, sw);
 }
 catch (IOException ex) {
  Assert.shouldNeverReachHere();
 }
 return sw.toString();
}
origin: com.vividsolutions/jts

/**
 *  Same as <code>write</code>, but with newlines and spaces to make the
 *  well-known text more readable.
 *
 *@param  geometry  a <code>Geometry</code> to process
 *@return           a <Geometry Tagged Text> string (see the OpenGIS Simple
 *      Features Specification), with newlines and spaces
 */
public String writeFormatted(Geometry geometry)
{
 Writer sw = new StringWriter();
 try {
  writeFormatted(geometry, true, sw);
 }
 catch (IOException ex) {
  Assert.shouldNeverReachHere();
 }
 return sw.toString();
}
/**
origin: com.vividsolutions/jts-core

/**
 *  Converts a <code>Geometry</code> to its Well-known Text representation.
 *
 *@param  geometry  a <code>Geometry</code> to process
 */
public void write(Geometry geometry, Writer writer)
 throws IOException
{
 writeFormatted(geometry, false, writer);
}
origin: com.vividsolutions/jts-core

/**
 *  Same as <code>write</code>, but with newlines and spaces to make the
 *  well-known text more readable.
 *
 *@param  geometry  a <code>Geometry</code> to process
 */
public void writeFormatted(Geometry geometry, Writer writer)
 throws IOException
{
 writeFormatted(geometry, true, writer);
}
/**
origin: org.gvnix/org.gvnix.jpa.geo

  @Override
  public void writeFormatted(Geometry geometry, Writer writer)
      throws IOException {
    writer.write(getSRID(geometry));
    super.writeFormatted(geometry, writer);
  }
}
origin: org.gvnix/org.gvnix.jpa.geo

@Override
public String writeFormatted(Geometry geometry) {
  return getSRID(geometry).concat(super.writeFormatted(geometry));
}
origin: com.vividsolutions/jts-core

/**
 *  Converts a <code>Geometry</code> to its Well-known Text representation.
 *
 *@param  geometry  a <code>Geometry</code> to process
 *@return           a <Geometry Tagged Text> string (see the OpenGIS Simple
 *      Features Specification)
 */
public String write(Geometry geometry)
{
 Writer sw = new StringWriter();
 try {
  writeFormatted(geometry, isFormatted, sw);
 }
 catch (IOException ex) {
  Assert.shouldNeverReachHere();
 }
 return sw.toString();
}
origin: com.vividsolutions/jts-core

/**
 *  Same as <code>write</code>, but with newlines and spaces to make the
 *  well-known text more readable.
 *
 *@param  geometry  a <code>Geometry</code> to process
 *@return           a <Geometry Tagged Text> string (see the OpenGIS Simple
 *      Features Specification), with newlines and spaces
 */
public String writeFormatted(Geometry geometry)
{
 Writer sw = new StringWriter();
 try {
  writeFormatted(geometry, true, sw);
 }
 catch (IOException ex) {
  Assert.shouldNeverReachHere();
 }
 return sw.toString();
}
/**
origin: senbox-org/snap-desktop

wktWriter.setMaxCoordinatesPerLine(2);
wktWriter.setTab(3);
String wkt = wktWriter.writeFormatted(targetGeom);
origin: bcdev/beam

wktWriter.setMaxCoordinatesPerLine(2);
wktWriter.setTab(3);
String wkt = wktWriter.writeFormatted(targetGeom);
com.vividsolutions.jts.ioWKTWriterwriteFormatted

Javadoc

Same as write, but with newlines and spaces to make the well-known text more readable.

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
  • 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.
  • 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