Mercurial > mxd2map
comparison src/java/de/intevation/mxd/reader/MXDReader.java @ 30:c34c450edb06
Introduced class reader.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Fri, 08 Apr 2011 17:58:37 +0200 |
parents | 77cfa8092611 |
children | 40c0b4e5f91a |
comparison
equal
deleted
inserted
replaced
29:77cfa8092611 | 30:c34c450edb06 |
---|---|
21 import com.esri.arcgis.geometry.IProjection; | 21 import com.esri.arcgis.geometry.IProjection; |
22 import com.esri.arcgis.geometry.Projection; | 22 import com.esri.arcgis.geometry.Projection; |
23 | 23 |
24 import org.w3c.dom.Document; | 24 import org.w3c.dom.Document; |
25 import org.w3c.dom.Element; | 25 import org.w3c.dom.Element; |
26 import org.w3c.dom.Node; | |
26 | 27 |
27 /** | 28 /** |
28 * The MXD file reader. | 29 * The MXD file reader. |
29 * | 30 * |
30 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a> | 31 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a> |
109 try{ | 110 try{ |
110 FeatureLayerReader lr = new FeatureLayerReader(layer); | 111 FeatureLayerReader lr = new FeatureLayerReader(layer); |
111 lr.setDocument(mapInfo); | 112 lr.setDocument(mapInfo); |
112 lr.read(); | 113 lr.read(); |
113 if (layer instanceof FeatureLayer){ | 114 if (layer instanceof FeatureLayer){ |
115 IFeatureClass fc = ((FeatureLayer)layer).getFeatureClass(); | |
116 IClassReader creader = new FeatureClassReader(fc); | |
117 | |
114 IFeatureRenderer renderer = ((FeatureLayer)layer).getRenderer(); | 118 IFeatureRenderer renderer = ((FeatureLayer)layer).getRenderer(); |
115 IRendererReader rreader; | 119 IRendererReader rreader; |
116 if(renderer instanceof SimpleRenderer){ | 120 if(renderer instanceof SimpleRenderer){ |
117 rreader = new SimpleRendererReader(renderer); | 121 rreader = new SimpleRendererReader(renderer); |
118 rreader.read(); | 122 rreader.read(); |