Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/FloodMapState.java @ 5580:fa5868a52f14
Change HWS Strings in the floodmap for current calculations
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Fri, 05 Apr 2013 17:10:52 +0200 |
parents | d43ef9f709cd |
children |
comparison
equal
deleted
inserted
replaced
5579:d8209556c6fa | 5580:fa5868a52f14 |
---|---|
109 | 109 |
110 public static final int WSPLGEN_DEFAULT_OUTPUT = 0; | 110 public static final int WSPLGEN_DEFAULT_OUTPUT = 0; |
111 | 111 |
112 private static final String HWS_LINES_SHAPE = "hws-lines.shp"; | 112 private static final String HWS_LINES_SHAPE = "hws-lines.shp"; |
113 | 113 |
114 private static final String I18N_HWS_POINTS = "floodmap.hws.points"; | 114 private static final String I18N_HWS_POINTS_OFFICIAL = "floodmap.hws.points.official"; |
115 private static final String I18N_HWS_LINES = "floodmap.hws.lines"; | 115 private static final String I18N_HWS_LINES_OFFICIAL = "floodmap.hws.lines.official"; |
116 private static final String HWS_LINES = "hws-lines"; | 116 private static final String HWS_LINES = "hws-lines"; |
117 private static final String HWS_POINT_SHAPE = "hws-points.shp"; | 117 private static final String HWS_POINT_SHAPE = "hws-points.shp"; |
118 private static final String HWS_POINTS = "hws-points"; | 118 private static final String HWS_POINTS = "hws-points"; |
119 | 119 |
120 /** | 120 /** |
376 File line = new File(dir, HWS_LINES_SHAPE); | 376 File line = new File(dir, HWS_LINES_SHAPE); |
377 boolean lines = line.exists(); | 377 boolean lines = line.exists(); |
378 logger.debug("shp file exists: " + lines); | 378 logger.debug("shp file exists: " + lines); |
379 if (lines) { | 379 if (lines) { |
380 job.addLin(dir + "/" + HWS_LINES_SHAPE); | 380 job.addLin(dir + "/" + HWS_LINES_SHAPE); |
381 facetCreator.createShapeFacet(I18N_HWS_LINES, | 381 facetCreator.createShapeFacet(I18N_HWS_LINES_OFFICIAL, |
382 MapfileGenerator.MS_LAYER_PREFIX + HWS_LINES, | 382 MapfileGenerator.MS_LAYER_PREFIX + HWS_LINES, |
383 FLOODMAP_LINES, 2); | 383 FLOODMAP_LINES, 2); |
384 } | 384 } |
385 File point = new File(dir, HWS_POINT_SHAPE); | 385 File point = new File(dir, HWS_POINT_SHAPE); |
386 boolean points = point.exists(); | 386 boolean points = point.exists(); |
387 logger.debug("shp file exists: " + points); | 387 logger.debug("shp file exists: " + points); |
388 if (points) { | 388 if (points) { |
389 facetCreator.createShapeFacet(I18N_HWS_POINTS, | 389 facetCreator.createShapeFacet(I18N_HWS_POINTS_OFFICIAL, |
390 MapfileGenerator.MS_LAYER_PREFIX + HWS_POINTS, | 390 MapfileGenerator.MS_LAYER_PREFIX + HWS_POINTS, |
391 FLOODMAP_FIXPOINTS, 3); | 391 FLOODMAP_FIXPOINTS, 3); |
392 } | 392 } |
393 } | 393 } |
394 | 394 |
423 HWS_LINES_SHAPE, | 423 HWS_LINES_SHAPE, |
424 "LINE", | 424 "LINE", |
425 "31467", | 425 "31467", |
426 "hws"); | 426 "hws"); |
427 job.addLin(artifactDir + "/" + HWS_LINES_SHAPE); | 427 job.addLin(artifactDir + "/" + HWS_LINES_SHAPE); |
428 facetCreator.createShapeFacet(I18N_HWS_LINES, | 428 facetCreator.createShapeFacet(I18N_HWS_LINES_OFFICIAL, |
429 MapfileGenerator.MS_LAYER_PREFIX + HWS_LINES, | 429 MapfileGenerator.MS_LAYER_PREFIX + HWS_LINES, |
430 FLOODMAP_HWS_LINES,2); | 430 FLOODMAP_HWS_LINES,2); |
431 } | 431 } |
432 } | 432 } |
433 | 433 |