use of com.dexels.navajo.geo.renderer.SvgRenderer in project navajo by Dexels.
the class KMLMap method getSvgData.
public Binary getSvgData() throws IOException {
if (myKmzData == null) {
getKmlData();
}
InputStream bis = myKmzData.getDataAsStream();
ZipInputStream zis = new ZipInputStream(bis);
ZipEntry ze = null;
do {
ze = zis.getNextEntry();
if (ze != null && ze.getName().equals("doc.kml")) {
SvgRenderer sr = new SvgRenderer();
mySvgData = sr.renderToBinary(zis);
FormatDescription fd = new FormatDescription();
fd.addFileExtension("svg");
fd.addMimeType("image/svg");
myKmzData.setMimeType("image/svg");
zis.close();
return mySvgData;
}
} while (ze != null);
zis.close();
return null;
}
Aggregations