01: /* Copyright (c) 2001 - 2007 TOPP - www.openplans.org. All rights reserved.
02: * This code is licensed under the GPL 2.0 license, availible at the root
03: * application directory.
04: */
05: package org.vfny.geoserver.wms;
06:
07: import java.awt.image.RenderedImage;
08: import java.io.IOException;
09: import java.io.OutputStream;
10:
11: /**
12: * Extends GetMapProducer to allow users (for example, the meta tiler) to peek
13: * inside th map production chain at a finer grained level
14: *
15: * @author Andrea Aime
16: * @author Simone Giannecchini - GeoSolutions SAS
17: *
18: */
19: public interface RasterMapProducer extends GetMapProducer {
20: /**
21: * Returns the raw image generated in the
22: * {@link GetMapProducer#produceMap(WMSMapContext)} step
23: *
24: * @return
25: */
26: public RenderedImage getImage();
27:
28: /**
29: * Transforms a rendered image into the appropriate format, streaming to the
30: * output stream.
31: *
32: * @param image
33: * The image to be formatted.
34: * @param outStream
35: * The stream to write to.
36: *
37: * @throws WmsException
38: * @throws IOException
39: */
40: public void formatImageOutputStream(RenderedImage image,
41: OutputStream outStream) throws WmsException, IOException;
42: }
|