Package com.esri.core.geometry.ogc

Examples of com.esri.core.geometry.ogc.OGCGeometry.asBinary()


      LogUtils.Log_ArgumentsNull(LOG);
      return null;
    }

    try {
      ByteBuffer byteBuf = ogcGeometry.asBinary();
      byte [] byteArr = byteBuf.array();
      return new BytesWritable(byteArr);
    } catch (Exception e){
      LOG.error(e.getMessage());
      return null;
View Full Code Here


      LogUtils.Log_ArgumentsNull(LOG);
      return null;
    }

    try {
      ByteBuffer byteBuf = ogcGeometry.asBinary();
      byte [] byteArr = byteBuf.array();
      return new BytesWritable(byteArr);
    } catch (Exception e){
      LOG.error(e.getMessage());
      return null;
View Full Code Here

    assertTrue(gc2.geometryN(2).geometryType().equals("LineString"));
    assertTrue(gc2.geometryN(3).geometryType().equals("MultiPolygon"));
    assertTrue(gc2.geometryN(4).geometryType().equals("MultiLineString"));
    assertTrue(gc2.geometryN(5).geometryType().equals("MultiPoint"));

    ByteBuffer wkbBuffer = g.asBinary();
    g = OGCGeometry.fromBinary(wkbBuffer);

    assertTrue(g.geometryType().equals("GeometryCollection"));
    gc = (OGCConcreteGeometryCollection) g;
    assertTrue(gc.numGeometries() == 7);
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.