| Tranforms a feature colleciton to a kml "Document" element which contains a
"Folder" element consisting of "GroundOverlay" elements.
Usage:
//have a reference to a map context and output stream
WMSMapContext context = ...
OutputStream output = ...;
KMLRasterTransformer tx = new KMLRasterTransformer( context );
for ( int i = 0; i < context.getLayerCount(); i++ ) {
MapLayer mapLayer = mapConext.getMapLayer( i );
//transform
tx.transform( mapLayer, output );
}
The inline parameter
KMLRasterTransformer.setInline(boolean) controls wether the images
for the request are refernces "inline" as local images, or remoteley as wms
requests.
author: Justin Deoliveira, The Open Planning Project, jdeolive@openplans.org |