Mercurial > mxd2map
comparison 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 |
comparison
equal
deleted
inserted
replaced
28:0e71a1f71ec0 | 29:77cfa8092611 |
---|---|
105 mreader.read(); | 105 mreader.read(); |
106 | 106 |
107 for(int i = 0; i < map.getLayerCount();i++){ | 107 for(int i = 0; i < map.getLayerCount();i++){ |
108 ILayer layer = map.getLayer(i); | 108 ILayer layer = map.getLayer(i); |
109 try{ | 109 try{ |
110 ILayerReader lr = new FeatureLayerReader(layer); | 110 FeatureLayerReader lr = new FeatureLayerReader(layer); |
111 lr.setDocument(mapInfo); | |
111 lr.read(); | 112 lr.read(); |
112 if (layer instanceof FeatureLayer){ | 113 if (layer instanceof FeatureLayer){ |
113 IFeatureRenderer renderer = ((FeatureLayer)layer).getRenderer(); | 114 IFeatureRenderer renderer = ((FeatureLayer)layer).getRenderer(); |
114 IRendererReader rreader; | 115 IRendererReader rreader; |
115 if(renderer instanceof SimpleRenderer){ | 116 if(renderer instanceof SimpleRenderer){ |
133 } | 134 } |
134 catch(Exception e){ | 135 catch(Exception e){ |
135 e.printStackTrace(); | 136 e.printStackTrace(); |
136 } | 137 } |
137 } | 138 } |
139 XMLUtils.toStream(mapInfo, System.out); | |
138 } | 140 } |
139 return true; | 141 return true; |
140 } | 142 } |
141 | 143 |
142 | 144 |