public PolyhedralSurface createPolyhedralSurface(List tiles) throws MismatchedReferenceSystemException, MismatchedDimensionException { return getGeometryFactory().createPolyhedralSurface(tiles); }
public static PolyhedralSurface createPolyhedralSurface(final DirectPosition[][] patchPoints) { // get the crs and factories final CoordinateReferenceSystem crs = patchPoints[0][0].getCoordinateReferenceSystem(); final GeometryFactory geometryFactory = new JTSGeometryFactory(crs); // create polygons from each of the arrays of directPositions final List polygons = new ArrayList(patchPoints.length); for (int i = 0; i < patchPoints.length; i++) { final Polygon polygon = createPolygon(patchPoints[i]); polygons.add(polygon); } return geometryFactory.createPolyhedralSurface(polygons); }
public static PolyhedralSurface createPolyhedralSurface(final DirectPosition[][] patchPoints) { // get the crs and factories final CoordinateReferenceSystem crs = patchPoints[0][0].getCoordinateReferenceSystem(); final CommonFactory commonFactory = BasicFactories.getDefault(); final GeometryFactory geometryFactory = commonFactory.getGeometryFactory(crs); // create polygons from each of the arrays of directPositions final List polygons = new ArrayList(patchPoints.length); for (int i = 0; i < patchPoints.length; i++) { final Polygon polygon = createPolygon(patchPoints[i]); polygons.add(polygon); } return geometryFactory.createPolyhedralSurface(polygons); }
public static PolyhedralSurface createPolyhedralSurface(final DirectPosition[][] patchPoints) { // get the crs and factories final CoordinateReferenceSystem crs = patchPoints[0][0].getCoordinateReferenceSystem(); final BasicFactories commonFactory = BasicFactories.getDefault(); final GeometryFactory geometryFactory = commonFactory.getGeometryFactory(crs); // create polygons from each of the arrays of directPositions final List polygons = new ArrayList(patchPoints.length); for (int i = 0; i < patchPoints.length; i++) { final Polygon polygon = createPolygon(patchPoints[i]); polygons.add(polygon); } return geometryFactory.createPolyhedralSurface(polygons); }
ArrayList patches = new ArrayList(); patches.add(polygon); PolyhedralSurface result = gf.createPolyhedralSurface(patches); return result;
ArrayList patches = new ArrayList(); patches.add(polygon); PolyhedralSurface result = gf.createPolyhedralSurface(patches); return result;