当前位置: 首页>>代码示例>>Java>>正文


Java WKTWriter.toPoint方法代码示例

本文整理汇总了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);
}
 
开发者ID:gegy1000,项目名称:Earth,代码行数:13,代码来源:QuadEdgeSubdivision.java

示例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);
}
 
开发者ID:Semantive,项目名称:jts,代码行数:12,代码来源:QuadEdgeSubdivision.java

示例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);
}
 
开发者ID:GitHubDroid,项目名称:geodroid_master_update,代码行数:13,代码来源:QuadEdgeSubdivision.java

示例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;
}
 
开发者ID:gegy1000,项目名称:Earth,代码行数:7,代码来源:ConstraintEnforcementException.java

示例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;
}
 
开发者ID:Semantive,项目名称:jts,代码行数:6,代码来源:ConstraintEnforcementException.java


注:本文中的com.vividsolutions.jts.io.WKTWriter.toPoint方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。