diff src/java/de/intevation/mxd/reader/MXDReader.java @ 29:77cfa8092611

Write FeatureLayer attributes to XML document.
author Raimund Renkert <rrenkert@intevation.de>
date Fri, 08 Apr 2011 17:36:22 +0200
parents e5fdc37f8f94
children c34c450edb06
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/reader/MXDReader.java	Fri Apr 08 17:33:04 2011 +0200
+++ b/src/java/de/intevation/mxd/reader/MXDReader.java	Fri Apr 08 17:36:22 2011 +0200
@@ -107,7 +107,8 @@
             for(int i = 0; i < map.getLayerCount();i++){
                 ILayer layer = map.getLayer(i);
                 try{
-                    ILayerReader lr = new FeatureLayerReader(layer);
+                    FeatureLayerReader lr = new FeatureLayerReader(layer);
+                    lr.setDocument(mapInfo);
                     lr.read();
                     if (layer instanceof FeatureLayer){
                         IFeatureRenderer renderer = ((FeatureLayer)layer).getRenderer();
@@ -135,6 +136,7 @@
                     e.printStackTrace();
                 }
             }
+            XMLUtils.toStream(mapInfo, System.out);
         }
         return true;
     }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)