| java.lang.Object org.vfny.geoserver.wms.responses.AbstractGetMapProducer org.vfny.geoserver.wms.responses.map.kml.KMZMapProducer
KMZMapProducer | class KMZMapProducer extends AbstractGetMapProducer implements GetMapProducer(Code) | | Handles a GetMap request that spects a map in KMZ format.
KMZ files are a zipped KML file. The KML file must have an emcompasing
or element. So if you have many different placemarks or
ground overlays, they all need to be contained within one element,
then zipped up and sent off with the extension "kmz".
author: $Author: Alessio Fabiani (alessio.fabiani@gmail.com) $ author: $Author: Simone Giannecchini (simboss1@gmail.com) $ author: $Author: Brent Owens author: Justin Deoliveira |
abort | public void abort()(Code) | | |
getContentDisposition | public String getContentDisposition()(Code) | | |
produceMap | public void produceMap() throws WmsException(Code) | | Initializes the KML encoder. None of the map production is done here, it
is done in writeTo(). This way the output can be streamed directly to the
output response and not written to disk first, then loaded in and then
sent to the response.
Parameters: map - WMSMapContext describing what layers, styles, area of interestetc are to be used when producing the map. throws: WmsException - thrown if anything goes wrong during the production. |
writeTo | public void writeTo(OutputStream out) throws ServiceException, IOException(Code) | | Makes the map and sends it to the zipped output stream The produceMap()
method does not create the map in this case. We produce the map here so
we can stream directly to the response output stream, and not have to
write to disk, then send it to the stream.
Parameters: out - OutputStream to stream the map to. throws: ServiceException - throws: IOException - |
|
|