Skip to content

Instantly share code, notes, and snippets.

@RaymondKroon
Created July 10, 2015 15:03
Show Gist options
  • Save RaymondKroon/f866de14ed401cfe0aba to your computer and use it in GitHub Desktop.
Save RaymondKroon/f866de14ed401cfe0aba to your computer and use it in GitHub Desktop.
Vrijdagmiddaghumor
rasterLayers:
for (RasterLayer layer : service.getRasterLayers()) {
String datastoreName = layer.getDatastoreName();
boolean doIt = false;
for(RasterDatastore rasterDatastore : service.getRasterDatastores()) {
if(datastoreName.equals(rasterDatastore.getName())) {
doIt= true;
}
}
if(!doIt) {
break rasterLayers;
}
CreateStyle(layer.getDefaultStyle(), service);
CreateStyles(layer.getSelectableStyles(), service);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment