本文整理了Java中com.vividsolutions.jts.geom.Point.getCoordinates()
方法的一些代码示例,展示了Point.getCoordinates()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Point.getCoordinates()
方法的具体详情如下:
包路径:com.vividsolutions.jts.geom.Point
类名称:Point
方法名:getCoordinates
暂无
代码示例来源:origin: com.vividsolutions/jts
/**
* Checks validity of a Point.
*/
private void checkValid(Point g)
{
checkInvalidCoordinates(g.getCoordinates());
}
/**
代码示例来源:origin: com.vividsolutions/jts
/**
* Add a Point to the graph.
*/
private void addPoint(Point p)
{
// a zero or negative width buffer of a line/point is empty
if (distance <= 0.0)
return;
Coordinate[] coord = p.getCoordinates();
Coordinate[] curve = curveBuilder.getLineCurve(coord, distance);
addCurve(curve, Location.EXTERIOR, Location.INTERIOR);
}
代码示例来源:origin: org.geotools/gt-render
public Coordinate[] getCoordinates() {
return point.getCoordinates();
}
代码示例来源:origin: org.geotools/gt-main
private static final Geometry cloneGeometry(Point geom) {
return geomFac
.createPoint(new LiteCoordinateSequence((Coordinate[]) geom.getCoordinates()));
}
代码示例来源:origin: com.vividsolutions/jts-core
/**
* Checks validity of a Point.
*/
private void checkValid(Point g)
{
checkInvalidCoordinates(g.getCoordinates());
}
/**
代码示例来源:origin: org.geotools/gt2-main
private final Geometry cloneGeometry(Point geom)
{
return getGeometryFactory().createPoint( new LiteCoordinateSequence( (Coordinate[]) geom.getCoordinates() ) );
}
private final Geometry cloneGeometry(LineString geom)
代码示例来源:origin: com.vividsolutions/jts-core
/**
* Add a Point to the graph.
*/
private void addPoint(Point p)
{
// a zero or negative width buffer of a line/point is empty
if (distance <= 0.0)
return;
Coordinate[] coord = p.getCoordinates();
Coordinate[] curve = curveBuilder.getLineCurve(coord, distance);
addCurve(curve, Location.EXTERIOR, Location.INTERIOR);
}
代码示例来源:origin: org.jboss.teiid/teiid-engine
protected static Geometry transformPoint(CoordinateTransform ct,
Point point) {
return point.getFactory().createPoint(transformCoordinates(ct, point.getCoordinates())[0]);
}
代码示例来源:origin: org.teiid/teiid-engine
protected static Geometry transformPoint(CoordinateTransform ct,
Point point) {
return point.getFactory().createPoint(transformCoordinates(ct, point.getCoordinates())[0]);
}
代码示例来源:origin: teiid/teiid
protected static Geometry transformPoint(CoordinateTransform ct,
Point point) {
return point.getFactory().createPoint(transformCoordinates(ct, point.getCoordinates())[0]);
}
代码示例来源:origin: org.orbisgis/orbisgis-core
public static MultiLineString linearZInterpolation(MultiLineString multiLineString) {
int nbGeom = multiLineString.getNumGeometries();
LineString[] lines = new LineString[nbGeom];
for (int i = 0; i < nbGeom; i++) {
LineString subGeom = (LineString) multiLineString.getGeometryN(i);
double startz = subGeom.getStartPoint().getCoordinates()[0].z;
double endz = subGeom.getEndPoint().getCoordinates()[0].z;
double length = subGeom.getLength();
subGeom.apply(new LinearZInterpolationFilter(startz, endz, length));
lines[i] = subGeom;
}
return FACTORY.createMultiLineString(lines);
}
代码示例来源:origin: org.orbisgis/h2gis
/**
* Interpolate each linestring of the multilinestring.
*
* @param multiLineString
* @return
*/
private static MultiLineString linearZInterpolation(MultiLineString multiLineString) {
int nbGeom = multiLineString.getNumGeometries();
LineString[] lines = new LineString[nbGeom];
for (int i = 0; i < nbGeom; i++) {
LineString subGeom = (LineString) multiLineString.getGeometryN(i);
double startz = subGeom.getStartPoint().getCoordinates()[0].z;
double endz = subGeom.getEndPoint().getCoordinates()[0].z;
double length = subGeom.getLength();
subGeom.apply(new LinearZInterpolationFilter(startz, endz, length));
lines[i] = subGeom;
}
return FACTORY.createMultiLineString(lines);
}
代码示例来源:origin: org.orbisgis/h2gis-functions
/**
* Interpolate each linestring of the multilinestring.
*
* @param multiLineString
* @return
*/
private static MultiLineString linearZInterpolation(MultiLineString multiLineString) {
int nbGeom = multiLineString.getNumGeometries();
LineString[] lines = new LineString[nbGeom];
for (int i = 0; i < nbGeom; i++) {
LineString subGeom = (LineString) multiLineString.getGeometryN(i);
double startz = subGeom.getStartPoint().getCoordinates()[0].z;
double endz = subGeom.getEndPoint().getCoordinates()[0].z;
double length = subGeom.getLength();
subGeom.apply(new LinearZInterpolationFilter(startz, endz, length));
lines[i] = subGeom;
}
return FACTORY.createMultiLineString(lines);
}
代码示例来源:origin: org.hibernatespatial/hibernate-spatial-oracle
private SDOGeometry convertJTSPoint(Point jtsGeom) {
int dim = getCoordDimension(jtsGeom);
int lrsDim = getCoordinateLrsPosition(jtsGeom);
boolean isLrs = (lrsDim != 0);
Double[] coord = convertCoordinates(jtsGeom.getCoordinates(), dim,
isLrs);
SDOGeometry geom = new SDOGeometry();
geom.setGType(new SDOGType(dim, lrsDim, TypeGeometry.POINT));
geom.setSRID(jtsGeom.getSRID());
ElemInfo info = new ElemInfo(1);
info.setElement(0, 1, ElementType.POINT, 1);
geom.setInfo(info);
geom.setOrdinates(new Ordinates(coord));
return geom;
}
内容来源于网络,如有侵权,请联系作者删除!