Package com.esri.core.geometry.ogc

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


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

    resultInt.set(ogcGeometry.dimension());
    return resultInt;
  }

}
View Full Code Here


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

    resultInt.set(ogcGeometry.dimension());
    return resultInt;
  }

}
View Full Code Here

    OGCGeometry g1 = OGCGeometry.fromText(wk2);
    g0.setSpatialReference(null);
    g1.setSpatialReference(null);
    OGCGeometry rslt = g0.intersection(g1);
    assertTrue(rslt != null);
    assertTrue(rslt.dimension() == 1);
    assertTrue(rslt.geometryType().equals("LineString"));
    String s = rslt.asText();
  }

  @Test
View Full Code Here

    OGCGeometry g1 = OGCGeometry.fromText(wk2);
    g0.setSpatialReference(SpatialReference.create(4326));
    g1.setSpatialReference(SpatialReference.create(4326));
    OGCGeometry rslt = g0.intersection(g1);
    assertTrue(rslt != null);
    assertTrue(rslt.dimension() == 0);
    assertTrue(rslt.geometryType().equals("Point"));
    assertTrue(rslt.esriSR.getID() == 4326);
    String s = rslt.asText();
  }
View Full Code Here

  @Test
  public void testMultiPointSinglePoint() {
    String wkt = "multipoint((1 0))";
    OGCGeometry g0 = OGCGeometry.fromText(wkt);
    assertTrue(g0.dimension() == 0);
    String gt = g0.geometryType();
    assertTrue(gt.equals("MultiPoint"));
    OGCMultiPoint mp = (OGCMultiPoint)g0;
    assertTrue(mp.numGeometries() == 1);
    OGCGeometry p = mp.geometryN(0);
View Full Code Here

  @Test
  public void testIntersection() {
    OGCGeometry g = OGCGeometry.fromText("LINESTRING(0 0, 10 10)");
    OGCGeometry g2 = OGCGeometry.fromText("LINESTRING(10 0, 0 10)");
    OGCGeometry u = g.intersection(g2);
    assertTrue(u.dimension() == 0);
    String s = u.asText();
    assertTrue(u.equals(OGCGeometry.fromText("POINT(5 5)")));
  }

  @Test
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.