for (int i = 0; i < ndProjections.getLength(); i++) {
Node node = ndProjections.item(i);
String key = xpath.evaluate("@key", node);
String alias = xpath.evaluate("@alias", node);
String resKey = xpath.evaluate("@resKey", node);
ItemInfo ii = new ItemInfo(key, alias, resKey);
cfg.getProjectionInfo().add(ii);
}
// load output format
NodeList ndFormats = (NodeList) xpath.evaluate("formats/format",
ndDownload, XPathConstants.NODESET);
for (int i = 0; i < ndFormats.getLength(); i++) {
Node node = ndFormats.item(i);
String key = xpath.evaluate("@key", node);
String alias = xpath.evaluate("@alias", node);
String resKey = xpath.evaluate("@resKey", node);
ItemInfo ii = new ItemInfo(key, alias, resKey);
cfg.getOutputFormatInfo().add(ii);
}
// load feature formats
NodeList ndFeatureFormats = (NodeList) xpath.evaluate("features/feature",
ndDownload, XPathConstants.NODESET);
for (int i = 0; i < ndFeatureFormats.getLength(); i++) {
Node node = ndFeatureFormats.item(i);
String key = xpath.evaluate("@key", node);
String alias = xpath.evaluate("@alias", node);
String resKey = xpath.evaluate("@resKey", node);
ItemInfo ii = new ItemInfo(key, alias, resKey);
cfg.getFeatureFormatInfo().add(ii);
}
// load raster formats
NodeList ndRasterFormats = (NodeList) xpath.evaluate("rasters/raster",
ndDownload, XPathConstants.NODESET);
for (int i = 0; i < ndRasterFormats.getLength(); i++) {
Node node = ndRasterFormats.item(i);
String key = xpath.evaluate("@key", node);
String alias = xpath.evaluate("@alias", node);
String resKey = xpath.evaluate("@resKey", node);
ItemInfo ii = new ItemInfo(key, alias, resKey);
cfg.getRasterFormatInfo().add(ii);
}
}
}