com.esri.core.geometry.Point.setM()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(4.3k)|赞(0)|评价(0)|浏览(167)

本文整理了Java中com.esri.core.geometry.Point.setM()方法的一些代码示例,展示了Point.setM()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Point.setM()方法的具体详情如下:
包路径:com.esri.core.geometry.Point
类名称:Point
方法名:setM

Point.setM介绍

[英]Sets the M coordinate of this point.
[中]设置该点的M坐标。

代码示例

代码示例来源:origin: Esri/spatial-framework-for-hadoop

public BytesWritable evaluate(DoubleWritable x, DoubleWritable y, DoubleWritable z, DoubleWritable m) {
    if (x == null || y == null || z == null) {
      return null;
    }
    Point stPt = new Point(x.get(), y.get(), z.get());
    if (m != null)
      stPt.setM(m.get());
    return GeometryUtils.geometryToEsriShapeBytesWritable(OGCGeometry.createFromEsriGeometry(stPt, null));
  }
}

代码示例来源: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.setM(m);

代码示例来源:origin: com.esri.geometry/esri-geometry-api

p.setM(m);

代码示例来源:origin: Esri/geometry-api-java

point.addAttribute(VertexDescription.Semantics.M);
if (!bEmpty)
  point.setM(m);

代码示例来源:origin: com.esri.geometry/esri-geometry-api

point.addAttribute(VertexDescription.Semantics.M);
if (!bEmpty)
  point.setM(m);

代码示例来源: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.M);
if (!bEmpty)
  point.setM(Interop.translateFromAVNaN(m));

代码示例来源:origin: com.esri.geometry/esri-geometry-api

point.addAttribute(Semantics.M);
if (!bEmpty)
  point.setM(Interop.translateFromAVNaN(m));

代码示例来源:origin: com.esri.geometry/esri-geometry-api

double m = wkt_parser.currentNumericLiteral();
wkt_parser.nextToken();
point.setM(m);

代码示例来源:origin: Esri/geometry-api-java

double m = wkt_parser.currentNumericLiteral();
wkt_parser.nextToken();
point.setM(m);

相关文章