Mercurial > mxd2map
comparison 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 |
comparison
equal
deleted
inserted
replaced
247:30e10eb9ac68 | 248:191b7d18c79e |
---|---|
203 units = MS_UNITS.MS_METERS; | 203 units = MS_UNITS.MS_METERS; |
204 } | 204 } |
205 map.setUnits(units); | 205 map.setUnits(units); |
206 | 206 |
207 String srs = map.getMetaData("ows_srs"); | 207 String srs = map.getMetaData("ows_srs"); |
208 srs += " EPSG:" + mapNode.getAttribute("projection"); | 208 String mproj = mapNode.getAttribute("projection"); |
209 map.setMetaData("ows_srs", srs); | 209 if(srs.indexOf(mproj) < 0) { |
210 srs += " EPSG:" + mproj; | |
211 map.setMetaData("ows_srs", srs); | |
212 } | |
210 } | 213 } |
211 | 214 |
212 /** | 215 /** |
213 * Create layer objects and set the attributes. | 216 * Create layer objects and set the attributes. |
214 */ | 217 */ |