x3d.close();
}
private static void writeGetTile(Scene scene, OutputStream output,
GetTileRequest gt) throws IOException {
X3DBuilder x3d = new X3DBuilder(output);
for (W3DSLayer layer : scene.getLayers()) {
BoundingBox bbox = null;
try {
bbox = layer.getLayerInfo().getLayerInfo().getResource().boundingBox();
bbox = bbox.toBounds(gt.getCrs());
} catch (Exception e) {
e.printStackTrace();
}
x3d.createGeoOrigin(gt.getCrs(), bbox);
x3d.addW3DSLayer(layer);
}
x3d.writeHTML();
x3d.close();
}