mapsetFile.getName(), mapFile.getName(), JGrassConstants.GRASSBINARYRASTERMAP);
int index = map.getMapLayers().size();
ApplicationGIS.addLayersToMap(map, Arrays.asList(addedMapToCatalog), index);
} else {
Layer layer = layerFactory.createLayer(resource);
AddLayerCommand cmd = new AddLayerCommand(layer);
map.sendCommandASync(cmd);
}
}
}