本文整理了Java中com.esri.core.geometry.Point.setZ()
方法的一些代码示例,展示了Point.setZ()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Point.setZ()
方法的具体详情如下:
包路径:com.esri.core.geometry.Point
类名称:Point
方法名:setZ
[英]Sets the Z coordinate of this point.
[中]设置该点的Z坐标。
代码示例来源:origin: Esri/spatial-framework-for-hadoop
public BytesWritable evaluate(DoubleWritable x, DoubleWritable y, DoubleWritable z, DoubleWritable m) {
if (x == null || y == null) {
//LogUtils.Log_ArgumentsNull(LOG);
return null;
}
try {
Point stPt = new Point(x.get(), y.get());
if (z != null)
stPt.setZ(z.get());
if (m != null)
stPt.setM(m.get());
BytesWritable ret = GeometryUtils.geometryToEsriShapeBytesWritable(OGCGeometry.createFromEsriGeometry(stPt, null));
return ret;
} catch (Exception e) {
//LogUtils.Log_InternalError(LOG, "ST_Point: " + e);
return null;
}
}
代码示例来源:origin: Esri/geometry-api-java
p.setZ(z);
代码示例来源:origin: apache/asterixdb
@Override
public void evaluate(IFrameTupleReference tuple, IPointable result) throws HyracksDataException {
eval0.evaluate(tuple, inputArg0);
eval1.evaluate(tuple, inputArg1);
eval2.evaluate(tuple, inputArg2);
byte[] bytes0 = inputArg0.getByteArray();
int offset0 = inputArg0.getStartOffset();
byte[] bytes1 = inputArg1.getByteArray();
int offset1 = inputArg1.getStartOffset();
byte[] bytes2 = inputArg2.getByteArray();
int offset2 = inputArg2.getStartOffset();
resultStorage.reset();
try {
out.writeByte(ATypeTag.SERIALIZED_GEOMETRY_TYPE_TAG);
point.setX(getVal(bytes0, offset0));
point.setY(getVal(bytes1, offset1));
point.setZ(getVal(bytes2, offset2));
AGeometrySerializerDeserializer.INSTANCE.serialize(pointGeometry, out);
} catch (IOException e1) {
throw HyracksDataException.create(e1);
}
result.set(resultStorage);
}
}
代码示例来源:origin: com.esri.geometry/esri-geometry-api
p.setZ(z);
代码示例来源:origin: Esri/geometry-api-java
point.addAttribute(VertexDescription.Semantics.Z);
if (!bEmpty)
point.setZ(z);
代码示例来源:origin: com.esri.geometry/esri-geometry-api
point.addAttribute(VertexDescription.Semantics.Z);
if (!bEmpty)
point.setZ(z);
代码示例来源:origin: apache/asterixdb
@Override
public void evaluate(IFrameTupleReference tuple, IPointable result) throws HyracksDataException {
eval0.evaluate(tuple, inputArg0);
eval1.evaluate(tuple, inputArg1);
eval2.evaluate(tuple, inputArg2);
eval3.evaluate(tuple, inputArg3);
byte[] bytes0 = inputArg0.getByteArray();
int offset0 = inputArg0.getStartOffset();
byte[] bytes1 = inputArg1.getByteArray();
int offset1 = inputArg1.getStartOffset();
byte[] bytes2 = inputArg2.getByteArray();
int offset2 = inputArg2.getStartOffset();
byte[] bytes3 = inputArg3.getByteArray();
int offset3 = inputArg3.getStartOffset();
resultStorage.reset();
try {
out.writeByte(ATypeTag.SERIALIZED_GEOMETRY_TYPE_TAG);
point.setX(getVal(bytes0, offset0));
point.setY(getVal(bytes1, offset1));
point.setZ(getVal(bytes2, offset2));
point.setM(getVal(bytes3, offset3));
AGeometrySerializerDeserializer.INSTANCE.serialize(pointGeometry, out);
} catch (IOException e1) {
throw HyracksDataException.create(e1);
}
result.set(resultStorage);
}
}
代码示例来源:origin: com.esri.geometry/esri-geometry-api
private void readCoordinateAsPoint_(JsonReader json_iterator)
throws JsonGeometryException {
assert (isDouble_(json_iterator));
m_point = new Point();
double x = readDouble_(json_iterator);
json_iterator.nextToken();
double y = readDouble_(json_iterator);
json_iterator.nextToken();
if (NumberUtils.isNaN(y)) {
x = NumberUtils.NaN();
}
m_point.setXY(x, y);
if (isDouble_(json_iterator)) {
double z = readDouble_(json_iterator);
json_iterator.nextToken();
m_point.setZ(z);
}
if (isDouble_(json_iterator)) {
double m = readDouble_(json_iterator);
json_iterator.nextToken();
m_point.setM(m);
}
if (json_iterator.currentToken() != JsonReader.Token.END_ARRAY) {
throw new JsonGeometryException("parsing error");
}
}
代码示例来源:origin: Esri/geometry-api-java
private void readCoordinateAsPoint_(JsonReader json_iterator)
throws JsonGeometryException {
assert (isDouble_(json_iterator));
m_point = new Point();
double x = readDouble_(json_iterator);
json_iterator.nextToken();
double y = readDouble_(json_iterator);
json_iterator.nextToken();
if (NumberUtils.isNaN(y)) {
x = NumberUtils.NaN();
}
m_point.setXY(x, y);
if (isDouble_(json_iterator)) {
double z = readDouble_(json_iterator);
json_iterator.nextToken();
m_point.setZ(z);
}
if (isDouble_(json_iterator)) {
double m = readDouble_(json_iterator);
json_iterator.nextToken();
m_point.setM(m);
}
if (json_iterator.currentToken() != JsonReader.Token.END_ARRAY) {
throw new JsonGeometryException("parsing error");
}
}
代码示例来源:origin: Esri/geometry-api-java
point.addAttribute(Semantics.Z);
if (!bEmpty)
point.setZ(Interop.translateFromAVNaN(z));
代码示例来源:origin: com.esri.geometry/esri-geometry-api
point.addAttribute(Semantics.Z);
if (!bEmpty)
point.setZ(Interop.translateFromAVNaN(z));
代码示例来源:origin: com.esri.geometry/esri-geometry-api
double z = wkt_parser.currentNumericLiteral();
wkt_parser.nextToken();
point.setZ(z);
代码示例来源:origin: Esri/geometry-api-java
double z = wkt_parser.currentNumericLiteral();
wkt_parser.nextToken();
point.setZ(z);
内容来源于网络,如有侵权,请联系作者删除!