Mercurial > mxd2map
comparison src/java/de/intevation/mxd/reader/FeatureLayerReader.java @ 58:4e0464c620f0
Introduced the picture symbol reader.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Fri, 20 May 2011 15:34:35 +0200 |
parents | ef7ca23c4233 |
children | e468cf8701ea |
comparison
equal
deleted
inserted
replaced
57:8da6555f1c12 | 58:4e0464c620f0 |
---|---|
5 import org.apache.log4j.Logger; | 5 import org.apache.log4j.Logger; |
6 | 6 |
7 import com.esri.arcgis.carto.ILayer; | 7 import com.esri.arcgis.carto.ILayer; |
8 import com.esri.arcgis.carto.FeatureLayer; | 8 import com.esri.arcgis.carto.FeatureLayer; |
9 import com.esri.arcgis.geodatabase.FeatureClassName; | 9 import com.esri.arcgis.geodatabase.FeatureClassName; |
10 import com.esri.arcgis.geodatabase.IDataset; | |
11 import com.esri.arcgis.geodatabase.IFeatureClass; | |
10 import com.esri.arcgis.system.IName; | 12 import com.esri.arcgis.system.IName; |
11 | 13 |
12 import org.w3c.dom.Element; | 14 import org.w3c.dom.Element; |
13 | 15 |
14 import de.intevation.mxd.utils.MapToXMLUtils; | 16 import de.intevation.mxd.utils.MapToXMLUtils; |
95 if(fcn instanceof FeatureClassName) { | 97 if(fcn instanceof FeatureClassName) { |
96 FeatureClassName name = (FeatureClassName)fcn; | 98 FeatureClassName name = (FeatureClassName)fcn; |
97 layerElement.setAttribute("data_source", name.getName()); | 99 layerElement.setAttribute("data_source", name.getName()); |
98 } | 100 } |
99 | 101 |
102 layerElement.setAttribute( | |
103 "workspace", | |
104 layer.getWorkspace().getPathName()); | |
100 return layerElement; | 105 return layerElement; |
101 } | 106 } |
102 } | 107 } |
103 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 108 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |