Mercurial > mxd2map
comparison src/java/de/intevation/mxd/reader/FeatureLayerReader.java @ 180:f4eb506499f5
Done some code styling and removed TODOs.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Mon, 11 Jul 2011 12:11:08 +0200 |
parents | f3a91cd7440b |
children | 0bde090506f9 |
comparison
equal
deleted
inserted
replaced
179:f3a91cd7440b | 180:f4eb506499f5 |
---|---|
138 logger.warn( | 138 logger.warn( |
139 "Could not read definition query."); | 139 "Could not read definition query."); |
140 } | 140 } |
141 | 141 |
142 try { | 142 try { |
143 AnnotateLayerPropertiesCollection annotation= | 143 AnnotateLayerPropertiesCollection annotation = |
144 (AnnotateLayerPropertiesCollection)layer.getAnnotationProperties(); | 144 (AnnotateLayerPropertiesCollection) |
145 | 145 layer.getAnnotationProperties(); |
146 | |
146 if (layer.isDisplayAnnotation() && annotation.getCount() > 0){ | 147 if (layer.isDisplayAnnotation() && annotation.getCount() > 0){ |
147 for(int i = 0; i < annotation.getCount(); i++) { | 148 for(int i = 0; i < annotation.getCount(); i++) { |
148 IAnnotateLayerProperties prop = annotation.getProperties(0); | 149 IAnnotateLayerProperties prop = annotation.getProperties(0); |
149 if(prop instanceof LabelEngineLayerProperties) { | 150 if(prop instanceof LabelEngineLayerProperties) { |
150 try { | 151 try { |
201 "workspace", | 202 "workspace", |
202 layer.getWorkspace().getPathName()); | 203 layer.getWorkspace().getPathName()); |
203 | 204 |
204 } | 205 } |
205 else if(layer.getWorkspace().getType() == 2) { | 206 else if(layer.getWorkspace().getType() == 2) { |
206 IPropertySet set = layer.getWorkspace().getConnectionProperties(); | 207 IPropertySet set = |
208 layer.getWorkspace().getConnectionProperties(); | |
207 Object names[] = new Object[set.getCount()]; | 209 Object names[] = new Object[set.getCount()]; |
208 Object prop[] = new Object[set.getCount()]; | 210 Object prop[] = new Object[set.getCount()]; |
209 set.getAllProperties(names, prop); | 211 set.getAllProperties(names, prop); |
210 layerElement.setAttribute("connection_type", "SDE"); | 212 layerElement.setAttribute("connection_type", "SDE"); |
211 for(int i = 0; i < names.length; i++) { | 213 for(int i = 0; i < names.length; i++) { |