Package com.esri.core.geometry.ogc

Examples of com.esri.core.geometry.ogc.OGCPoint.X()


    }

    switch(GeometryUtils.getType(geomref)) {
    case ST_POINT:
      OGCPoint pt = (OGCPoint)ogcGeometry;
      resultDouble.set(pt.X());
      return resultDouble;
    default:
      LogUtils.Log_InvalidType(LOG, GeometryUtils.OGCType.ST_POINT, GeometryUtils.getType(geomref));
      return null;
    }
View Full Code Here


     
      if (point == null) {
        return null;
      }
     
      bins.queryEnvelope(point.X(), point.Y(), env);
    }

    return GeometryUtils.geometryToEsriShapeBytesWritable(env, 0, OGCType.ST_POLYGON);
  }
View Full Code Here

   
    if (point == null) {
      return null;
    }
   
    return bins.getId(point.X(), point.Y());
  }

  @Override
  public String getDisplayString(String[] args) {
    assert(args.length == 2);
View Full Code Here

    }

    switch(GeometryUtils.getType(geomref)) {
    case ST_POINT:
      OGCPoint pt = (OGCPoint)ogcGeometry;
      resultDouble.set(pt.X());
      return resultDouble;
    default:
      LogUtils.Log_InvalidType(LOG, GeometryUtils.OGCType.ST_POINT, GeometryUtils.getType(geomref));
      return null;
    }
View Full Code Here

  @Test
  public void testPoint() {
    OGCGeometry g = OGCGeometry.fromText("POINT(1 2)");
    assertTrue(g.geometryType().equals("Point"));
    OGCPoint p = (OGCPoint) g;
    assertTrue(p.X() == 1);
    assertTrue(p.Y() == 2);
    assertTrue(g.equals(OGCGeometry.fromText("POINT(1 2)")));
    assertTrue(!g.equals(OGCGeometry.fromText("POINT(1 3)")));
    OGCGeometry buf = g.buffer(10);
    assertTrue(buf.geometryType().equals("Polygon"));
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.