comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/horizontal/HorizontalProfileOutputState.java @ 508:90f03b909bb0

Removed never try-catch of a never thrown exception. gnv-artifacts/trunk@591 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 21 Jan 2010 16:08:08 +0000
parents 45be952a3215
children d9d933e06875
comparison
equal deleted inserted replaced
507:45be952a3215 508:90f03b909bb0
253 253
254 for (int i = 0; i < CHART_TITLE_META.length; i++) { 254 for (int i = 0; i < CHART_TITLE_META.length; i++) {
255 String qry = CHART_TITLE_META[i]; 255 String qry = CHART_TITLE_META[i];
256 256
257 if (qry.equals("SHAPE")) { 257 if (qry.equals("SHAPE")) {
258 try { 258 String wktPoint = result.getString(qry);
259 String wktPoint = result.getString(qry); 259
260 260 meta.append(getMessage(locale,"coordinate","coordinate"));
261 meta.append(getMessage(locale,"coordinate","coordinate")); 261 meta.append(": ");
262 meta.append(": "); 262 meta.append(WKTUtils.toText(wktPoint));
263 meta.append(WKTUtils.toText(wktPoint));
264 }
265 catch (ParseException pe) {
266 log.warn("Error while parsing point.", pe);
267 }
268 } 263 }
269 else { 264 else {
270 log.debug( 265 log.debug(
271 "Add " + qry + " to meta information of subtitle: " 266 "Add " + qry + " to meta information of subtitle: "
272 + result.getString(qry) 267 + result.getString(qry)

http://dive4elements.wald.intevation.org