Java Code Examples for com.vividsolutions.jts.io.WKTWriter#toLineString()

The following examples show how to use com.vividsolutions.jts.io.WKTWriter#toLineString() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: QuadEdgeSubdivision.java    From jts with GNU Lesser General Public License v2.1 5 votes vote down vote up
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);
}
 
Example 2
Source File: LineIntersector.java    From jts with GNU Lesser General Public License v2.1 4 votes vote down vote up
public String toString() {
  return WKTWriter.toLineString(inputLines[0][0], inputLines[0][1]) + " - "
  + WKTWriter.toLineString(inputLines[1][0], inputLines[1][1])
               + getTopologySummary();
}
 
Example 3
Source File: PointPairDistance.java    From jts with GNU Lesser General Public License v2.1 4 votes vote down vote up
public String toString()
{
	return WKTWriter.toLineString(pt[0], pt[1]);
}
 
Example 4
Source File: BasicSegmentString.java    From jts with GNU Lesser General Public License v2.1 4 votes vote down vote up
public String toString()
{
  return WKTWriter.toLineString(new CoordinateArraySequence(pts));
}
 
Example 5
Source File: NodedSegmentString.java    From jts with GNU Lesser General Public License v2.1 4 votes vote down vote up
public String toString()
{
	return WKTWriter.toLineString(new CoordinateArraySequence(pts));
}
 
Example 6
Source File: EdgeRing.java    From jts with GNU Lesser General Public License v2.1 2 votes vote down vote up
/**
 * Gets a string representation of this object.
 * 
 * @return a string representing the object 
 */
public String toString() {
  return WKTWriter.toLineString(new CoordinateArraySequence(getCoordinates()));
}
 
Example 7
Source File: QuadEdge.java    From jts with GNU Lesser General Public License v2.1 2 votes vote down vote up
/**
 * Converts this edge to a WKT two-point <tt>LINESTRING</tt> indicating 
 * the geometry of this edge.
 * 
 * @return a String representing this edge's geometry
 */
public String toString() {
    Coordinate p0 = vertex.getCoordinate();
    Coordinate p1 = dest().getCoordinate();
    return WKTWriter.toLineString(p0, p1);
}