diff src/java/de/intevation/mxd/writer/MapScriptWriter.java @ 248:191b7d18c79e

Minor fixes for metadata information.
author raimund renkert <raimund.renkert@intevation.de>
date Wed, 10 Aug 2011 14:39:31 +0200
parents 30e10eb9ac68
children 4c59d8c36418
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Wed Aug 10 13:23:29 2011 +0200
+++ b/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Wed Aug 10 14:39:31 2011 +0200
@@ -205,8 +205,11 @@
         map.setUnits(units);
 
 	String srs = map.getMetaData("ows_srs");
-	srs += " EPSG:" + mapNode.getAttribute("projection");
-	map.setMetaData("ows_srs", srs);
+	String mproj = mapNode.getAttribute("projection");
+	if(srs.indexOf(mproj) < 0) {
+	    srs += " EPSG:" + mproj;
+	    map.setMetaData("ows_srs", srs);
+	}
     }
 
     /**
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)