Package com.esri.core.geometry

Examples of com.esri.core.geometry.Envelope


      int wkid = GeometryUtils.getWKID(geomref);
      SpatialReference spatialReference = null;
      if (wkid != GeometryUtils.WKID_UNKNOWN) {
        spatialReference = SpatialReference.create(wkid);
      }
      Envelope envBound = new Envelope();
      ogcGeometry.getEsriGeometry().queryEnvelope(envBound);
      Point centroid = new Point((envBound.getXMin() + envBound.getXMax()) / 2.,
                     (envBound.getYMin() + envBound.getYMax()) / 2.);
      return GeometryUtils.geometryToEsriShapeBytesWritable(OGCGeometry.createFromEsriGeometry(centroid,
                                  spatialReference));
    default:
      LogUtils.Log_InvalidType(LOG, GeometryUtils.OGCType.ST_POLYGON, ogcType);
      return null;
View Full Code Here


    if (ogcGeometry == null) {
      LogUtils.Log_ArgumentsNull(LOG);
      return null;
    }

    Envelope envBound = new Envelope();
    ogcGeometry.getEsriGeometry().queryEnvelope(envBound);
    resultDouble.set(envBound.getXMin());
    return resultDouble;
  }
View Full Code Here

    int wkid = GeometryUtils.getWKID(geometryref);
    SpatialReference spatialReference = null;
    if (wkid != GeometryUtils.WKID_UNKNOWN) {
      spatialReference = SpatialReference.create(wkid);
    }
    Envelope envBound = new Envelope();
    ogcGeometry.getEsriGeometry().queryEnvelope(envBound);
    return GeometryUtils.geometryToEsriShapeBytesWritable(OGCGeometry.createFromEsriGeometry(envBound,
                                  spatialReference));
  }
View Full Code Here

   
    if (!binSizeIsConstant || bins == null) {
      bins = new BinUtils(binSize);
    }
       
    Envelope env = new Envelope();
   
    if (oiBinId != null) {
      // argument 1 is a number, attempt to get the envelope with bin ID
      if (args[1].get() == null) {
        // null bin ID argument usually means the source point was null or failed to parse
View Full Code Here

    if (ogcGeometry == null) {
      LogUtils.Log_ArgumentsNull(LOG);
      return null;
    }

    Envelope envBound = new Envelope();
    ogcGeometry.getEsriGeometry().queryEnvelope(envBound);
    resultDouble.set(envBound.getYMax());
    return resultDouble;
  }
View Full Code Here

      return null;
    }

    Geometry geometry1 = ogcGeom1.getEsriGeometry();
    Geometry geometry2 = ogcGeom2.getEsriGeometry();
    Envelope env1 = new Envelope(), env2 = new Envelope();
    geometry1.queryEnvelope(env1);
    geometry2.queryEnvelope(env2);

    resultBoolean.set(env1.isIntersecting(env2));
    return resultBoolean;
View Full Code Here

    if (ogcGeometry == null) {
      LogUtils.Log_ArgumentsNull(LOG);
      return null;
    }

    Envelope envBound = new Envelope();
    ogcGeometry.getEsriGeometry().queryEnvelope(envBound);
    resultDouble.set(envBound.getXMax());
    return resultDouble;
  }
View Full Code Here

  }

  @Override
  public OGCGeometry envelope() {
    GeometryCursor gc = getEsriGeometryCursor();
    Envelope env = new Envelope();
    for (Geometry g = gc.next(); g != null; g = gc.next()) {
      Envelope e = new Envelope();
      g.queryEnvelope(e);
      env.merge(e);
    }

    Polygon polygon = new Polygon();
View Full Code Here

TOP

Related Classes of com.esri.core.geometry.Envelope

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.