Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/horizontalcrosssection/HorizontalCrossSectionMeshOutputState.java @ 1111:19182eaccc8d
Added a prefix for WMS layers to prevent the mapserver from generating invalid xml that would end in a bug (issue314, issue315).
gnv-artifacts/trunk@1245 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 29 Jun 2010 16:35:36 +0000 |
parents | 7096a2e13676 |
children | 9a24c743efa6 |
comparison
equal
deleted
inserted
replaced
1110:c6b2437c0c13 | 1111:19182eaccc8d |
---|---|
443 * layername. | 443 * layername. |
444 * @param type The type of the layer ('POLYGON' or 'LINE'). | 444 * @param type The type of the layer ('POLYGON' or 'LINE'). |
445 * @return the name of the layer. | 445 * @return the name of the layer. |
446 */ | 446 */ |
447 protected String getLayerName(String uuid, String type) { | 447 protected String getLayerName(String uuid, String type) { |
448 return uuid + "-" + type; | 448 return "GNV_" + uuid + "-" + type; |
449 } | 449 } |
450 | 450 |
451 /** | 451 /** |
452 * Returns the layer title. | 452 * Returns the layer title. |
453 * | 453 * |
454 * @param prefix A prefix (null not permitted). | 454 * @param prefix A prefix (null not permitted). |
455 * @param type The layer type. | 455 * @param type The layer type. |
456 * @return the title of the layer. | 456 * @return the title of the layer. |
457 */ | 457 */ |
458 protected String getLayerTitle(String prefix, String type) { | 458 protected String getLayerTitle(String prefix, String type) { |
459 return "" + prefix + "-" + type; | 459 return "GNV_" + prefix + "-" + type; |
460 } | 460 } |
461 | 461 |
462 | 462 |
463 /** | 463 /** |
464 * Returns the path to the shapefile that serves the layer data. | 464 * Returns the path to the shapefile that serves the layer data. |