diff src/java/de/intevation/mxd/reader/MultiLayerMarkerSymbolReader.java @ 58:4e0464c620f0

Introduced the picture symbol reader.
author Raimund Renkert <rrenkert@intevation.de>
date Fri, 20 May 2011 15:34:35 +0200
parents 5fc813f40fa5
children 5c5ef5768893
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/reader/MultiLayerMarkerSymbolReader.java	Tue May 17 13:00:10 2011 +0200
+++ b/src/java/de/intevation/mxd/reader/MultiLayerMarkerSymbolReader.java	Fri May 20 15:34:35 2011 +0200
@@ -11,6 +11,8 @@
 import com.esri.arcgis.display.MultiLayerMarkerSymbol;
 import com.esri.arcgis.display.ArrowMarkerSymbol;
 import com.esri.arcgis.display.CharacterMarkerSymbol;
+import com.esri.arcgis.display.PictureMarkerSymbol;
+
 import com.esri.arcgis.display.IColor;
 import com.esri.arcgis.display.RgbColor;
 
@@ -85,13 +87,21 @@
                     sreader.setUtil(util);
                     sreader.read();
                 }
-                if(sym instanceof CharacterMarkerSymbol) {
+                else if(sym instanceof CharacterMarkerSymbol) {
                     ISymbolReader sreader = new CharacterMarkerSymbolReader(sym);
                     sreader.setParent(renderer);
                     sreader.setUtil(util);
                     sreader.read();
                 }
+                else if(sym instanceof PictureMarkerSymbol) {
+                    ISymbolReader sreader = new PictureMarkerSymbolReader(sym);
+                    sreader.setParent(renderer);
+                    sreader.setUtil(util);
+                    sreader.read();
+                }
                 else {
+                    logger.debug("The type of " + sym.getClass().toString() +
+                                 " is not implemented!");
                     System.out.println(
                             "No known instance: " + sym.getClass().toString());
                 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)