Mercurial > mxd2map
changeset 316:5e3a40a84539
Some minor cleanups
* src/java/de/intevation/mxd/reader/FeatureLayerReader.java:
Add Debug output if Layer class is not implemented
* src/java/de/intevation/mxd/reader/RasterLayerReader.java:
Remove unused import
* src/java/de/intevation/mxd/reader/WMSLayerReader.java:
Tune down warnings about min/max scale
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Mon, 17 Sep 2012 17:10:44 +0200 |
parents | 1d77ea6a915d |
children | 5a2b5bc066eb |
files | ChangeLog src/java/de/intevation/mxd/reader/FeatureLayerReader.java src/java/de/intevation/mxd/reader/RasterLayerReader.java src/java/de/intevation/mxd/reader/WMSLayerReader.java |
diffstat | 4 files changed, 17 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Mon Sep 17 17:08:15 2012 +0200 +++ b/ChangeLog Mon Sep 17 17:10:44 2012 +0200 @@ -1,3 +1,14 @@ +2012-09-17 Andre Heinecke <aheinecke@intevation.de> + + * src/java/de/intevation/mxd/reader/FeatureLayerReader.java: + Add Debug output if Layer class is not implemented + + * src/java/de/intevation/mxd/reader/RasterLayerReader.java: + Remove unused import + + * src/java/de/intevation/mxd/reader/WMSLayerReader.java: + Tune down warnings about min/max scale + 2012-09-17 Andre Heinecke <aheinecke@intevation.de> Add basic support for Graphics Layer, restricted to TextElements for
--- a/src/java/de/intevation/mxd/reader/FeatureLayerReader.java Mon Sep 17 17:08:15 2012 +0200 +++ b/src/java/de/intevation/mxd/reader/FeatureLayerReader.java Mon Sep 17 17:10:44 2012 +0200 @@ -188,6 +188,8 @@ catch(Exception e) { logger.warn("Could not read label properties."); } + } else { + logger.debug("Unknown Layer class: " + prop.getClass().toString()); } } }
--- a/src/java/de/intevation/mxd/reader/RasterLayerReader.java Mon Sep 17 17:08:15 2012 +0200 +++ b/src/java/de/intevation/mxd/reader/RasterLayerReader.java Mon Sep 17 17:10:44 2012 +0200 @@ -26,7 +26,6 @@ import com.esri.arcgis.carto.AnnotateLayerPropertiesCollection; import com.esri.arcgis.carto.IAnnotateLayerProperties; import com.esri.arcgis.carto.LabelEngineLayerProperties; -import com.esri.arcgis.geodatabase.RasterDatasetName; import com.esri.arcgis.system.IName; import com.esri.arcgis.system.IPropertySet; import com.esri.arcgis.geometry.Envelope;
--- a/src/java/de/intevation/mxd/reader/WMSLayerReader.java Mon Sep 17 17:08:15 2012 +0200 +++ b/src/java/de/intevation/mxd/reader/WMSLayerReader.java Mon Sep 17 17:10:44 2012 +0200 @@ -114,7 +114,8 @@ String.valueOf(layer.getMinimumScale())); } catch(IOException ioe) { - logger.warn("Could not read minimum scale."); + logger.debug("Could not read minimum scale."); + layerElement.setAttribute("min_scale", "0"); } try { @@ -122,8 +123,9 @@ String.valueOf(layer.getMaximumScale())); } catch(IOException ioe) { - logger.warn( + logger.debug( "Could not read maximum scale."); + layerElement.setAttribute("max_scale", "0"); } try {