Mercurial > mxd2map
changeset 308:1c949a309940
Wirte offsite values for raster layers
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Thu, 06 Sep 2012 18:59:35 +0200 |
parents | f9e53dcc7424 |
children | e8021f3e411a |
files | ChangeLog src/java/de/intevation/mxd/writer/MapScriptWriter.java |
diffstat | 2 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Thu Sep 06 18:58:41 2012 +0200 +++ b/ChangeLog Thu Sep 06 18:59:35 2012 +0200 @@ -1,3 +1,8 @@ +2012-09-06 Andre Heinecke <aheinecke@intevation.de> + + * src/java/de/intevation/mxd/writer/MapScriptWriter.java: + Write offsite values for raster layers + 2012-09-06 Andre Heinecke <aheinecke@intevation.de> * src/java/de/intevation/mxd/reader/FeatureLayerReader.java,
--- a/src/java/de/intevation/mxd/writer/MapScriptWriter.java Thu Sep 06 18:58:41 2012 +0200 +++ b/src/java/de/intevation/mxd/writer/MapScriptWriter.java Thu Sep 06 18:59:35 2012 +0200 @@ -532,6 +532,11 @@ layer.setTemplate("PleaseInsertAValidTemplateForGFI"); } + // Set Offsite value for raster layer + if(type == "raster") { + layer.setOffsite(new colorObj(255,255,255,-4)); + } + // Create labelitem NodeList labels = layerElement.getElementsByTagName("label"); if(labels.getLength() > 0) {