Package org.opengis.geometry.aggregate

Examples of org.opengis.geometry.aggregate.MultiSurface


    SurfaceBoundary surfaceBoundary1 = primf.createSurfaceBoundary(exteriorRing, interiors );
    Surface surface = primf.createSurface(surfaceBoundary1);
   
    Set<OrientableSurface> surfaces = new HashSet<OrientableSurface>();
    surfaces.add(surface);
    MultiSurface ms = agf.createMultiSurface(surfaces);
    //System.out.println(ms);
    //System.out.println(ms.getBoundary());
    //assertNotNull(ms.getBoundary());
   
    // test equals
    assertTrue(ms.equals(new MultiSurfaceImpl(ms.getCoordinateReferenceSystem(), surfaces)));
   
  }
View Full Code Here


    for (int i=1; i<patches.size(); i++) {
      SurfacePatch nextPatch = patches.get(i);
      surfaceList.add(new SurfaceImpl(nextPatch.getBoundary()));
    }
   
    MultiSurface ms = new MultiSurfaceImpl(getCoordinateReferenceSystem(), surfaceList);
    TransfiniteSet unionResultSurface = firstPatchSurface.union(ms);
    if (! (unionResultSurface instanceof SurfaceImpl))
      throw new IllegalArgumentException("Surface patches are not continuous");
   
    return (SurfaceBoundaryImpl) ((SurfaceImpl)unionResultSurface).getBoundary();
View Full Code Here

TOP

Related Classes of org.opengis.geometry.aggregate.MultiSurface

Copyright © 2018 www.massapicom. 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.