comparison src/java/de/intevation/mxd/writer/MapScriptWriter.java @ 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 c8b8f887ef80
comparison
equal deleted inserted replaced
307:f9e53dcc7424 308:1c949a309940
530 } 530 }
531 if(!type.equals("raster")) { 531 if(!type.equals("raster")) {
532 layer.setTemplate("PleaseInsertAValidTemplateForGFI"); 532 layer.setTemplate("PleaseInsertAValidTemplateForGFI");
533 } 533 }
534 534
535 // Set Offsite value for raster layer
536 if(type == "raster") {
537 layer.setOffsite(new colorObj(255,255,255,-4));
538 }
539
535 // Create labelitem 540 // Create labelitem
536 NodeList labels = layerElement.getElementsByTagName("label"); 541 NodeList labels = layerElement.getElementsByTagName("label");
537 if(labels.getLength() > 0) { 542 if(labels.getLength() > 0) {
538 Element label = (Element)labels.item(0); 543 Element label = (Element)labels.item(0);
539 String expr = label.getAttribute("expression"); 544 String expr = label.getAttribute("expression");
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)