Package org.geotools.geometry.iso.coordinate

Examples of org.geotools.geometry.iso.coordinate.SurfacePatchImpl


        newPatchList.add(p);
    }
    this.patch = newPatchList;

    // Build the envelope for the Surface based on the SurfacePatch envelopes
    SurfacePatchImpl tFirstPatch = (SurfacePatchImpl) patch.get(0);
    //this.envelope = new EnvelopeImpl(tFirstPatch.getEnvelope());
    this.envelope = new EnvelopeImpl(tFirstPatch.getEnvelope());
    for (SurfacePatch p : patch)
      ((EnvelopeImpl) this.envelope).expand(((SurfacePatchImpl) p)
          .getEnvelope());

  }
View Full Code Here


    // Create Surface
    SurfaceImpl rSurface = new SurfaceImpl(getCoordinateReferenceSystem(),
        surfacePatches);
    // Set reference to the generated Surface for each SurfacePatch
    for (int i = 0; i < surfacePatches.size(); i++) {
      SurfacePatchImpl actPatch = (SurfacePatchImpl) surfacePatches
          .get(i);
      actPatch.setSurface(rSurface);
    }

    return rSurface;
  }
View Full Code Here

    Ring exteriorRing2 = tPrimFactory.createRingByDirectPositions(directPositionList);
    SurfaceBoundaryImpl surfaceBoundary2 = tPrimFactory.createSurfaceBoundary(exteriorRing2, interiors );
    assertFalse(surfaceBoundary1.equals(surfaceBoundary2));
   
    // test more surfacepathces methods
    SurfacePatchImpl patch = (SurfacePatchImpl) surfacePatches1.get(0);
    assertNotNull(patch.getInterpolation());
                // Following is commented-out because we are supposed to have a TriangulatedSurface, not plain Surface.
                // This Surface is built above in this test case, so its seems to be something to fix in the test suite.
    //assertTrue(surface.equals(patch.getSurface()));
    assertNotNull(patch.getNumDerivativesOnBoundary());
   
   
   
//     create a list of connected directpositions
    List<Position> dps = new ArrayList<Position>();
View Full Code Here

TOP

Related Classes of org.geotools.geometry.iso.coordinate.SurfacePatchImpl

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.