本文整理了Java中com.esri.core.geometry.Point.setX()
方法的一些代码示例,展示了Point.setX()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Point.setX()
方法的具体详情如下:
包路径:com.esri.core.geometry.Point
类名称:Point
方法名:setX
[英]Sets the X coordinate of the point.
[中]设置点的X坐标。
代码示例来源:origin: mraad/Shapefile
@Override
public void readFields(final DataInput dataInput) throws IOException
{
point.setEmpty();
point.setX(dataInput.readDouble());
point.setY(dataInput.readDouble());
}
}
代码示例来源:origin: mraad/Shapefile
public Point queryPoint(final Point point) throws IOException
{
readRecordHeader();
point.setX(EndianUtils.readSwappedDouble(m_dataInputStream));
point.setY(EndianUtils.readSwappedDouble(m_dataInputStream));
return point;
}
代码示例来源:origin: apache/asterixdb
@Override
public void evaluate(IFrameTupleReference tuple, IPointable result) throws HyracksDataException {
eval0.evaluate(tuple, inputArg0);
eval1.evaluate(tuple, inputArg1);
byte[] bytes0 = inputArg0.getByteArray();
int offset0 = inputArg0.getStartOffset();
byte[] bytes1 = inputArg1.getByteArray();
int offset1 = inputArg1.getStartOffset();
resultStorage.reset();
try {
out.writeByte(ATypeTag.SERIALIZED_GEOMETRY_TYPE_TAG);
point.setX(getVal(bytes0, offset0));
point.setY(getVal(bytes1, offset1));
AGeometrySerializerDeserializer.INSTANCE.serialize(pointGeometry, out);
} catch (IOException e1) {
throw HyracksDataException.create(e1);
}
result.set(resultStorage);
}
}
代码示例来源:origin: Esri/geometry-api-java
point.setX(x);
point.setY(y);
代码示例来源: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
point.setX(x);
point.setY(y);
代码示例来源: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
point.setX(Interop.translateFromAVNaN(x));
point.setY(Interop.translateFromAVNaN(y));
代码示例来源:origin: Esri/geometry-api-java
point.setX(Interop.translateFromAVNaN(x));
point.setY(Interop.translateFromAVNaN(y));
内容来源于网络,如有侵权,请联系作者删除!