Created
July 10, 2015 15:03
-
-
Save RaymondKroon/f866de14ed401cfe0aba to your computer and use it in GitHub Desktop.
Vrijdagmiddaghumor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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