Examples of OGCMultiLineString


Examples of com.esri.core.geometry.ogc.OGCMultiLineString

      assertTrue(g.geometryType().equals("LineString"));
      OGCGeometry simpleG = g.makeSimple();//make ogc simple
      assertTrue(simpleG.geometryType().equals("MultiLineString"));     
      assertTrue(simpleG.isSimpleRelaxed());//geodatabase simple
      assertTrue(simpleG.isSimple());//ogc simple
      OGCMultiLineString mls =(OGCMultiLineString)simpleG;
      assertTrue(mls.numGeometries() == 4);
      OGCGeometry baseGeom = OGCGeometry.fromJson("{\"paths\":[[[2,0],[3.25,1.875]],[[3.25,1.875],[4,3],[5,1]],[[5,1],[3.25,1.875]],[[3.25,1.875],[1,3]]],\"spatialReference\":{\"wkid\":4326}}");
      assertTrue(simpleG.equals(baseGeom));
     
    }
  }
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.