comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/WMSFixpointsArtifact.java @ 2683:f5af3adb3b95

Improved datacage configuration for floodmaps and maps and modified the WMS layer artifacts to support names for layers. flys-artifacts/trunk@4383 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 10 May 2012 11:14:17 +0000
parents 841af55d5e53
children 0ca00d547f35
comparison
equal deleted inserted replaced
2682:0795c296f718 2683:f5af3adb3b95
82 public FixpointsState(WMSDBArtifact artifact) { 82 public FixpointsState(WMSDBArtifact artifact) {
83 super(artifact); 83 super(artifact);
84 riverId = 0; 84 riverId = 0;
85 } 85 }
86 86
87 public int getRiverId() {
88 if (riverId == 0) {
89 String ids = artifact.getDataAsString("ids");
90
91 try {
92 riverId = Integer.valueOf(ids);
93 }
94 catch (NumberFormatException nfe) {
95 logger.error("Cannot parse river id from '" + ids + "'");
96 }
97 }
98
99 return riverId;
100 }
101
102 @Override 87 @Override
103 protected String getFacetType() { 88 protected String getFacetType() {
104 return FLOODMAP_FIXPOINTS; 89 return FLOODMAP_FIXPOINTS;
105 }
106
107 @Override
108 protected String getTitle(CallMeta meta) {
109 return Resources.getMsg(
110 meta,
111 FLOODMAP_FIXPOINTS,
112 FLOODMAP_FIXPOINTS);
113 } 90 }
114 91
115 @Override 92 @Override
116 protected String getUrl() { 93 protected String getUrl() {
117 return FLYSUtils.getUserWMSUrl(artifact.identifier()); 94 return FLYSUtils.getUserWMSUrl(artifact.identifier());

http://dive4elements.wald.intevation.org