本文整理汇总了Java中com.vividsolutions.jts.io.WKTWriter.toPoint方法的典型用法代码示例。如果您正苦于以下问题:Java WKTWriter.toPoint方法的具体用法?Java WKTWriter.toPoint怎么用?Java WKTWriter.toPoint使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.vividsolutions.jts.io.WKTWriter
的用法示例。
在下文中一共展示了WKTWriter.toPoint方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: checkTriangleSize
import com.vividsolutions.jts.io.WKTWriter; //导入方法依赖的package包/类
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);
}
示例2: checkTriangleSize
import com.vividsolutions.jts.io.WKTWriter; //导入方法依赖的package包/类
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);
}
示例3: checkTriangleSize
import com.vividsolutions.jts.io.WKTWriter; //导入方法依赖的package包/类
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);
}
示例4: msgWithCoord
import com.vividsolutions.jts.io.WKTWriter; //导入方法依赖的package包/类
private static String msgWithCoord(String msg, Coordinate pt) {
if (pt != null) {
return msg + " [ " + WKTWriter.toPoint(pt) + " ]";
}
return msg;
}
示例5: msgWithCoord
import com.vividsolutions.jts.io.WKTWriter; //导入方法依赖的package包/类
private static String msgWithCoord(String msg, Coordinate pt) {
if (pt != null)
return msg + " [ " + WKTWriter.toPoint(pt) + " ]";
return msg;
}