Mercurial > mxd2map
diff src/java/de/intevation/mxd/reader/FeatureLayerReader.java @ 40:a1bc7220efe7
Updated the mxd reader.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Thu, 14 Apr 2011 11:25:57 +0200 |
parents | 7a927921eb6c |
children | 395307e8b7ee |
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/reader/FeatureLayerReader.java Thu Apr 14 11:09:35 2011 +0200 +++ b/src/java/de/intevation/mxd/reader/FeatureLayerReader.java Thu Apr 14 11:25:57 2011 +0200 @@ -78,6 +78,12 @@ layerElement.setAttribute("status", "off"); } + int type = layer.getShapeType(); + switch (type) { + case 0: layerElement.setAttribute("type", "none"); + case 1: layerElement.setAttribute("type", "point"); + } + layerElement.setAttribute("definition_query", layer.getDefinitionExpression());