void render( PointStyling styling, Surface surface ) { for ( SurfacePatch patch : surface.getPatches() ) { if ( patch instanceof PolygonPatch ) { PolygonPatch polygonPatch = (PolygonPatch) patch; for ( Curve curve : polygonPatch.getBoundaryRings() ) { curve.setCoordinateSystem( surface.getCoordinateSystem() ); renderer.render( styling, curve ); } } else { throw new IllegalArgumentException( "Cannot render non-planar surfaces." ); } } }
case POLYGON_PATCH: counter++; writePolygonPatch( geometry.getId(), geometry.getCoordinateSystem(), geometry.getPrecision(), (PolygonPatch) p, writer ); break;
void render( LineStyling styling, Surface surface ) { for ( SurfacePatch patch : surface.getPatches() ) { if ( patch instanceof PolygonPatch ) { PolygonPatch polygonPatch = (PolygonPatch) patch; for ( Curve curve : polygonPatch.getBoundaryRings() ) { if ( curve.getCoordinateSystem() == null ) { curve.setCoordinateSystem( surface.getCoordinateSystem() ); } renderer.render( styling, curve ); } } else { throw new IllegalArgumentException( "Cannot render non-planar surfaces." ); } } }
Ring exteriorRing = patch.getExteriorRing(); List<Ring> interiorRings = patch.getInteriorRings(); simplified = geomFac.createPolygon( geometry.getId(), geometry.getCoordinateSystem(), exteriorRing, interiorRings ); } else { Ring exteriorRing = ( (PolygonPatch) patch ).getExteriorRing(); List<Ring> interiorRings = ( (PolygonPatch) patch ).getInteriorRings(); members.add( geomFac.createPolygon( null, geometry.getCoordinateSystem(), exteriorRing, interiorRings ) ); simplified = geomFac.createMultiPolygon( geometry.getId(), geometry.getCoordinateSystem(), members );
linearizedSurface = (T) geomFac.createPolyhedralSurface( surface.getId(), surface.getCoordinateSystem(), linearizedPatches ); break; surface.getCoordinateSystem() ); break;