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

x33g5p2x  于2022-01-20 转载在 其他  
字(5.9k)|赞(0)|评价(0)|浏览(159)

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

Geometry.getDescription介绍

[英]Returns the VertexDescription of this geometry.
[中]返回此几何图形的VertexDescription。

代码示例

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

/**
 * A shortcut for getDescription().hasAttribute()
 * @param semantics The VertexDescription.Semantics to check.
 * @return Return true if the attribute is present.
 */
public boolean hasAttribute(int semantics) {
  return getDescription().hasAttribute(semantics);
}

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

/**
 * A shortcut for getDescription().hasAttribute()
 * @param semantics The VertexDescription.Semantics to check.
 * @return Return true if the attribute is present.
 */
public boolean hasAttribute(int semantics) {
  return getDescription().hasAttribute(semantics);
}

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

public int coordinateDimension() {
  int d = 2;
  if (getEsriGeometry().getDescription().hasAttribute(
      VertexDescription.Semantics.M))
    d++;
  if (getEsriGeometry().getDescription().hasAttribute(
      VertexDescription.Semantics.Z))
    d++;
  return d;
}

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

static Geometry calculate_boundary(Geometry geom,
    ProgressTracker progress_tracker) {
  Geometry res = Boundary.calculate(geom, progress_tracker);
  if (res == null)
    return new Point(geom.getDescription());// cannot return null
  else
    return res;
}

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

static Geometry calculate_boundary(Geometry geom,
    ProgressTracker progress_tracker) {
  Geometry res = Boundary.calculate(geom, progress_tracker);
  if (res == null)
    return new Point(geom.getDescription());// cannot return null
  else
    return res;
}

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

public int coordinateDimension() {
  int d = 2;
  if (getEsriGeometry().getDescription().hasAttribute(
      VertexDescription.Semantics.M))
    d++;
  if (getEsriGeometry().getDescription().hasAttribute(
      VertexDescription.Semantics.Z))
    d++;
  return d;
}

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

public boolean isMeasured() {
  return getEsriGeometry().getDescription().hasAttribute(
      VertexDescription.Semantics.M);
}

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

public boolean is3D() {
  return getEsriGeometry().getDescription().hasAttribute(
      VertexDescription.Semantics.Z);
}

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

public boolean isMeasured() {
  return getEsriGeometry().getDescription().hasAttribute(
      VertexDescription.Semantics.M);
}

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

public boolean is3D() {
  return getEsriGeometry().getDescription().hasAttribute(
      VertexDescription.Semantics.Z);
}

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

@Override
public OGCGeometry boundary() {
  return new OGCMultiPoint(new MultiPoint(getEsriGeometry()
      .getDescription()), esriSR);// return empty point
}

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

@Override
public OGCGeometry boundary() {
  return new OGCMultiPoint(new MultiPoint(getEsriGeometry()
      .getDescription()), esriSR);// return empty point
}

代码示例来源:origin: Qihoo360/Quicksql

/** Returns the z-value of the first coordinate of {@code geom}. */
public static Double ST_Z(Geom geom) {
 return geom.g().getDescription().hasZ() && geom.g() instanceof Point
   ? ((Point) geom.g()).getZ() : null;
}

代码示例来源:origin: org.apache.calcite/calcite-core

/** Returns the z-value of the first coordinate of {@code geom}. */
public static Double ST_Z(Geom geom) {
 return geom.g().getDescription().hasZ() && geom.g() instanceof Point
   ? ((Point) geom.g()).getZ() : null;
}

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

Geometry normalizeIntersectionOutput(Geometry geom, int GT_1, int GT_2) {
  if (GT_1 == Geometry.GeometryType.Point
      || GT_2 == Geometry.GeometryType.Point) {
    assert (geom.getType().value() == Geometry.GeometryType.Point);
  }
  if (GT_1 == Geometry.GeometryType.MultiPoint) {
    if (geom.getType().value() == Geometry.GeometryType.Point) {
      MultiPoint mp = new MultiPoint(geom.getDescription());
      if (!geom.isEmpty())
        mp.add((Point) geom);
      return mp;
    }
  }
  return geom;
}

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

Geometry normalizeIntersectionOutput(Geometry geom, int GT_1, int GT_2) {
  if (GT_1 == Geometry.GeometryType.Point
      || GT_2 == Geometry.GeometryType.Point) {
    assert (geom.getType().value() == Geometry.GeometryType.Point);
  }
  if (GT_1 == Geometry.GeometryType.MultiPoint) {
    if (geom.getType().value() == Geometry.GeometryType.Point) {
      MultiPoint mp = new MultiPoint(geom.getDescription());
      if (!geom.isEmpty())
        mp.add((Point) geom);
      return mp;
    }
  }
  return geom;
}

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

static Geometry _denormalizeGeometry(Geometry geom, Geometry geomA,
    Geometry geomB) {
  Geometry.Type gtA = geomA.getType();
  Geometry.Type gtB = geomB.getType();
  Geometry.Type gt = geom.getType();
  if (gt == Geometry.Type.MultiPoint) {
    if (gtA == Geometry.Type.Point || gtB == Geometry.Type.Point) {
      MultiPoint mp = (MultiPoint) geom;
      if (mp.getPointCount() <= 1) {
        Point pt = new Point(geom.getDescription());
        if (!mp.isEmpty())
          mp.getPointByVal(0, pt);
        return (Geometry) pt;
      }
    }
  }
  return geom;
}

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

private Geometry bufferEnvelope_() {
  Polygon polygon = new Polygon(m_geometry.getDescription());
  if (m_distance <= 0) {
    if (m_distance == 0)
      polygon.addEnvelope((Envelope) (m_geometry), false);
    else {
      Envelope env = new Envelope();
      m_geometry.queryEnvelope(env);
      env.inflate(m_distance, m_distance);
      polygon.addEnvelope(env, false);
    }
    return polygon;// nothing is easier than negative buffer on the
            // envelope.
  }
  polygon.addEnvelope((Envelope) (m_geometry), false);
  m_geometry = polygon;
  return bufferConvexPath_(polygon, 0);
}

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

@Override
  public OGCGeometry boundary() {
    if (isEmpty())
      return new OGCMultiPoint(this.getEsriSpatialReference());
    
    if (isClosed())
      return new OGCMultiPoint(new MultiPoint(getEsriGeometry()
          .getDescription()), esriSR);// return empty multipoint;
    else
      return new OGCMultiPoint(startPoint(), endPoint());
  }
}

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

@Override
  public OGCGeometry boundary() {
    if (isEmpty())
      return new OGCMultiPoint(this.getEsriSpatialReference());
    
    if (isClosed())
      return new OGCMultiPoint(new MultiPoint(getEsriGeometry()
          .getDescription()), esriSR);// return empty multipoint;
    else
      return new OGCMultiPoint(startPoint(), endPoint());
  }
}

相关文章