congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
WKTWriter.writeFormatted
Code IndexAdd Tabnine 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)

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

/**
 *  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
 *@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
  • getSupportFragmentManager (FragmentActivity)
  • compareTo (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • JOptionPane (javax.swing)
  • Top 12 Jupyter Notebook extensions
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