Mercurial > mxd2map
comparison src/java/de/intevation/mxd/reader/SimpleRendererReader.java @ 46:34a93dad7604
Added MultiLayerMarkerSymbol(ArrowMarkerSymbol) support.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Mon, 18 Apr 2011 17:51:33 +0200 |
parents | 9b5fb5e5914d |
children | 37ff67a4991d |
comparison
equal
deleted
inserted
replaced
45:90d4de478f15 | 46:34a93dad7604 |
---|---|
6 | 6 |
7 import com.esri.arcgis.carto.IFeatureRenderer; | 7 import com.esri.arcgis.carto.IFeatureRenderer; |
8 import com.esri.arcgis.display.ISymbol; | 8 import com.esri.arcgis.display.ISymbol; |
9 import com.esri.arcgis.display.SimpleMarkerSymbol; | 9 import com.esri.arcgis.display.SimpleMarkerSymbol; |
10 import com.esri.arcgis.display.SimpleFillSymbol; | 10 import com.esri.arcgis.display.SimpleFillSymbol; |
11 import com.esri.arcgis.display.MultiLayerMarkerSymbol; | |
11 import com.esri.arcgis.carto.SimpleRenderer; | 12 import com.esri.arcgis.carto.SimpleRenderer; |
12 | 13 |
13 import org.w3c.dom.Element; | 14 import org.w3c.dom.Element; |
14 | 15 |
15 import de.intevation.mxd.utils.MapToXMLUtils; | 16 import de.intevation.mxd.utils.MapToXMLUtils; |
91 ISymbolReader isr = new SimpleFillSymbolReader(symbol); | 92 ISymbolReader isr = new SimpleFillSymbolReader(symbol); |
92 isr.setParent(rendererElement); | 93 isr.setParent(rendererElement); |
93 isr.setUtil(util); | 94 isr.setUtil(util); |
94 isr.read(); | 95 isr.read(); |
95 } | 96 } |
97 else if(symbol instanceof MultiLayerMarkerSymbol) { | |
98 ISymbolReader isr = new MultiLayerMarkerSymbolReader(symbol); | |
99 isr.setParent(rendererElement); | |
100 isr.setUtil(util); | |
101 isr.read(); | |
102 } | |
103 else { | |
104 System.out.println("No known Symbol type: " + symbol.getClass().toString()); | |
105 } | |
96 return layer; | 106 return layer; |
97 } | 107 } |
98 catch(Exception e) { | 108 catch(Exception e) { |
99 e.printStackTrace(); | 109 e.printStackTrace(); |
100 return null; | 110 return null; |