[MXD2map-commits] r304:50031b1ae8e6
scm-commit at wald.intevation.org
scm-commit at wald.intevation.org
Wed Sep 5 17:19:25 CEST 2012
details: http://hg.intevation.org/geospatial/mxd2map/rev/50031b1ae8e6
changeset: 304:50031b1ae8e6
user: Andre Heinecke <aheinecke at intevation.de>
date: Wed Sep 05 17:18:18 2012 +0200
description:
No longer ignore Layers without classes
diffstat:
ChangeLog | 6 ++++++
src/java/de/intevation/mxd/writer/MapScriptWriter.java | 10 +---------
2 files changed, 7 insertions(+), 9 deletions(-)
diffs (40 lines):
diff -r a9684178cb29 -r 50031b1ae8e6 ChangeLog
--- a/ChangeLog Wed Sep 05 17:16:41 2012 +0200
+++ b/ChangeLog Wed Sep 05 17:18:18 2012 +0200
@@ -1,3 +1,9 @@
+2012-09-05 Andre Heinecke <aheinecke at intevation.de>
+
+ * src/java/de/intevation/mxd/writer/MapScriptWriter.java:
+ No longer ignore Layers without classes. This is completly
+ legal in Map Files.
+
2012-09-05 Andre Heinecke <aheinecke at intevation.de>
* src/java/de/intevation/mxd/reader/RasterLayerReader.java:
diff -r a9684178cb29 -r 50031b1ae8e6 src/java/de/intevation/mxd/writer/MapScriptWriter.java
--- a/src/java/de/intevation/mxd/writer/MapScriptWriter.java Wed Sep 05 17:16:41 2012 +0200
+++ b/src/java/de/intevation/mxd/writer/MapScriptWriter.java Wed Sep 05 17:18:18 2012 +0200
@@ -261,14 +261,6 @@
Element layerElement = (Element)list.item(i);
layerObj layer = new layerObj(map);
NodeList renderer = layerElement.getElementsByTagName("renderer");
- if (renderer.getLength() == 0 &&
- layerElement.getAttribute("connection_type") != "WMS") {
- map.removeLayer(layer.getIndex());
- logger.warn(
- "Skipping empty layer " +
- layerElement.getAttribute("name"));
- continue;
- }
//The layer name.
String group = "";
@@ -398,7 +390,7 @@
//The layer datasource.
String con_type = layerElement.getAttribute("connection_type");
if(con_type.equals("local")) {
- // The data source is a local file. (.shp)
+ // The data source is a local file. (.shp or Image)
String datasource = "";
if(layerElement.hasAttribute("workspace")) {
datasource = layerElement.getAttribute("workspace");
More information about the MXD2map-commits
mailing list