本文整理了Java中org.locationtech.jts.geom.Point.<init>()
方法的一些代码示例,展示了Point.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Point.<init>()
方法的具体详情如下:
包路径:org.locationtech.jts.geom.Point
类名称:Point
方法名:<init>
[英]Constructs a Point
with the given coordinate.
[中]用给定的坐标构造一个Point
。
代码示例来源:origin: geotools/geotools
public Point getEndPoint() {
return new Point(
new CoordinateArraySequence(
new Coordinate[] {
new Coordinate(
controlPoints[controlPoints.length - 2],
controlPoints[controlPoints.length - 1])
}),
getFactory());
}
代码示例来源:origin: geotools/geotools
public Point getStartPoint() {
return new Point(
new CoordinateArraySequence(
new Coordinate[] {new Coordinate(controlPoints[0], controlPoints[1])}),
getFactory());
}
代码示例来源:origin: geotools/geotools
public Point getInteriorPoint() {
int idx = controlPoints.length / 2;
return new Point(
new CoordinateArraySequence(
new Coordinate[] {
new Coordinate(controlPoints[idx], controlPoints[idx + 1])
}),
getFactory());
}
代码示例来源:origin: locationtech/jts
/**
* Creates a Point using the given CoordinateSequence; a null or empty
* CoordinateSequence will create an empty Point.
*
* @param coordinates a CoordinateSequence (possibly empty), or null
* @return the created Point
*/
public Point createPoint(CoordinateSequence coordinates) {
return new Point(coordinates, this);
}
代码示例来源:origin: geotools/geotools
new Point(
new LiteCoordinateSequence(
referenceImage.getWidth() / 2d, referenceImage.getHeight() / 2d),
代码示例来源:origin: locationtech/jts
protected Point copyInternal() {
return new Point(coordinates.copy(), factory);
}
内容来源于网络,如有侵权,请联系作者删除!