Examples of geometryType()


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

    OGCGeometry g = OGCGeometry
        .fromText("POLYGON((-10 -10, 10 -10, 10 10, -10 10, -10 -10), (-5 -5, -5 5, 5 5, 5 -5, -5 -5))");
    OGCGeometry g2 = OGCGeometry
        .fromText("POLYGON((90 90, 110 90, 110 110, 90 110, 90 90))");
    OGCGeometry u = g.union(g2);
    assertTrue(u.geometryType().equals("MultiPolygon"));
    assertTrue(!u.contains(OGCGeometry.fromText("POINT(0 0)")));
    assertTrue(u.contains(OGCGeometry.fromText("POINT(9 9)")));
    assertTrue(!u.contains(OGCGeometry.fromText("POINT(-20 1)")));
    assertTrue(u.disjoint(OGCGeometry.fromText("POINT(0 0)")));
    assertTrue(!u.disjoint(OGCGeometry.fromText("POINT(9 9)")));
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.