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

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

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

private static String msgWithCoord(String msg, Coordinate pt) {
  if (pt != null)
    return msg + " [ " + WKTWriter.toPoint(pt) + " ]";
  return msg;
}
origin: com.vividsolutions/jts

private void checkTriangleSize(Coordinate[] pts)
{
  String loc = "";
  if (pts.length >= 2)
    loc = WKTWriter.toLineString(pts[0], pts[1]);
  else {
    if (pts.length >= 1)
      loc = WKTWriter.toPoint(pts[0]);
  }
  // Assert.isTrue(pts.length == 4, "Too few points for visited triangle at " + loc);
  //com.vividsolutions.jts.util.Debug.println("too few points for triangle at " + loc);
}
 
origin: com.vividsolutions/jts

System.out.println(WKTWriter.toLineString(new CoordinateArraySequence(
  new Coordinate[] { a, b, c, p })));
System.out.println("Circumcentre = " + WKTWriter.toPoint(circumCentre)
  + " radius = " + a.distance(circumCentre));
System.out.println("p radius diff a = "
origin: com.vividsolutions/jts-core

private static String msgWithCoord(String msg, Coordinate pt) {
  if (pt != null)
    return msg + " [ " + WKTWriter.toPoint(pt) + " ]";
  return msg;
}
origin: com.vividsolutions/jts-core

private void checkTriangleSize(Coordinate[] pts)
{
  String loc = "";
  if (pts.length >= 2)
    loc = WKTWriter.toLineString(pts[0], pts[1]);
  else {
    if (pts.length >= 1)
      loc = WKTWriter.toPoint(pts[0]);
  }
  // Assert.isTrue(pts.length == 4, "Too few points for visited triangle at " + loc);
  //com.vividsolutions.jts.util.Debug.println("too few points for triangle at " + loc);
}
 
origin: com.vividsolutions/jts-core

System.out.println(WKTWriter.toLineString(new CoordinateArraySequence(
  new Coordinate[] { a, b, c, p })));
System.out.println("Circumcentre = " + WKTWriter.toPoint(circumCentre)
  + " radius = " + a.distance(circumCentre));
System.out.println("p radius diff a = "
com.vividsolutions.jts.ioWKTWritertoPoint

Javadoc

Generates the WKT for a POINT specified by a Coordinate.

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

  • Updating database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • requestLocationUpdates (LocationManager)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • JList (javax.swing)
  • Join (org.hibernate.mapping)
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