Examples of SpatialReference


Examples of com.esri.arcgisws.SpatialReference

    // initialize envelope properties
    if ((env == null) || !(env instanceof EnvelopeN)) {
      return null;
    }
    EnvelopeN envn = (EnvelopeN)env;
    SpatialReference spref = envn.getSpatialReference();
    if ((spref == null) || (spref.getWKID() == null)) {
      return null;
    }
    int wkid = spref.getWKID().intValue();
    double xmin = envn.getXMin();
    double ymin = envn.getYMin();
    double xmax = envn.getXMax();
    double ymax = envn.getYMax();
View Full Code Here

Examples of com.esri.core.geometry.SpatialReference

  public BytesWritable evaluate(Text wkwrap, int wkid) throws UDFArgumentException {

    String wkt = wkwrap.toString();
    try {
      SpatialReference spatialReference = null;
      if (wkid != GeometryUtils.WKID_UNKNOWN) {
        spatialReference = SpatialReference.create(wkid);
      }
      OGCGeometry ogcObj = OGCGeometry.fromText(wkt);
      ogcObj.setSpatialReference(spatialReference);
View Full Code Here

Examples of com.esri.core.geometry.SpatialReference

  }

  public BytesWritable evaluate(BytesWritable wkb, int wkid) throws UDFArgumentException {

    try {
      SpatialReference spatialReference = null;
      if (wkid != GeometryUtils.WKID_UNKNOWN) {
        spatialReference = SpatialReference.create(wkid);
      }
      byte [] byteArr = wkb.getBytes();
            ByteBuffer byteBuf = ByteBuffer.allocate(byteArr.length);
View Full Code Here

Examples of com.esri.core.geometry.SpatialReference

  }

  public BytesWritable evaluate(BytesWritable wkb, int wkid) throws UDFArgumentException {

    try {
      SpatialReference spatialReference = null;
      if (wkid != GeometryUtils.WKID_UNKNOWN) {
        spatialReference = SpatialReference.create(wkid);
      }
      byte [] byteArr = wkb.getBytes();
            ByteBuffer byteBuf = ByteBuffer.allocate(byteArr.length);
View Full Code Here

Examples of com.esri.core.geometry.SpatialReference

  }

  public BytesWritable evaluate(BytesWritable wkb, int wkid) throws UDFArgumentException {

    try {
      SpatialReference spatialReference = null;
      if (wkid != GeometryUtils.WKID_UNKNOWN) {
        spatialReference = SpatialReference.create(wkid);
      }
      byte [] byteArr = wkb.getBytes();
            ByteBuffer byteBuf = ByteBuffer.allocate(byteArr.length);
View Full Code Here

Examples of com.esri.core.geometry.SpatialReference

  }

  public BytesWritable evaluate(BytesWritable wkb, int wkid) throws UDFArgumentException {

    try {
      SpatialReference spatialReference = null;
      if (wkid != GeometryUtils.WKID_UNKNOWN) {
        spatialReference = SpatialReference.create(wkid);
      }
      byte [] byteArr = wkb.getBytes();
            ByteBuffer byteBuf = ByteBuffer.allocate(byteArr.length);
View Full Code Here

Examples of com.esri.core.geometry.SpatialReference

    try {
      Geometry geomObj = GeometryEngine.geometryFromWkt(wkt,
                                0,
                                Geometry.Type.Unknown);
      SpatialReference spatialReference = null// Idea: OGCGeometry.setSpatialReference after .fromText
      if (wkid != GeometryUtils.WKID_UNKNOWN) {
        spatialReference = SpatialReference.create(wkid);
      }
      OGCGeometry ogcObj = OGCGeometry.createFromEsriGeometry(geomObj, spatialReference);
      return GeometryUtils.geometryToEsriShapeBytesWritable(ogcObj);
View Full Code Here

Examples of com.esri.core.geometry.SpatialReference

      LogUtils.Log_VariableArgumentLength(LOG);
    }

    int firstWKID = 0;

    SpatialReference spatialRef = null;

    // validate spatial references and geometries first
    for (int i=0;i<geomrefs.length; i++){
     
      BytesWritable geomref = geomrefs[i];
View Full Code Here

Examples of com.esri.core.geometry.SpatialReference

  }

  public BytesWritable evaluate(BytesWritable wkb, int wkid) throws UDFArgumentException {

    try {
      SpatialReference spatialReference = null;
      if (wkid != GeometryUtils.WKID_UNKNOWN) {
        spatialReference = SpatialReference.create(wkid);
      }
      byte [] byteArr = wkb.getBytes();
            ByteBuffer byteBuf = ByteBuffer.allocate(byteArr.length);
View Full Code Here

Examples of com.esri.core.geometry.SpatialReference

      LogUtils.Log_ArgumentsNull(LOG);
      return null;
    }

    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);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.