Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/layer/LayerOutputState.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 | faae3fc7b792 |
children | f953c9a559d8 |
comparison
equal
deleted
inserted
replaced
1110:c6b2437c0c13 | 1111:19182eaccc8d |
---|---|
705 return SHAPEFILE_NAME+"_"+layerNumber+".shp"; | 705 return SHAPEFILE_NAME+"_"+layerNumber+".shp"; |
706 } | 706 } |
707 | 707 |
708 | 708 |
709 protected String getLayerName(String uuid, int idx) { | 709 protected String getLayerName(String uuid, int idx) { |
710 return uuid + "_" + idx; | 710 return "GNV_" + uuid + "_" + idx; |
711 } | 711 } |
712 | 712 |
713 | 713 |
714 protected String getLayerTitle(String prefix, String base) { | 714 protected String getLayerTitle(String prefix, String base) { |
715 return prefix + "_" + base; | 715 return "GNV_" + prefix + "_" + base; |
716 } | 716 } |
717 | 717 |
718 | 718 |
719 protected String getLayerData(String shapeDir, String filename) { | 719 protected String getLayerData(String shapeDir, String filename) { |
720 File path = new File(shapeDir, filename); | 720 File path = new File(shapeDir, filename); |