Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/utils/RiverUtils.java @ 7055:1f38656b68c4
DGM SRIds are now fetched from database instead of configuration.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Thu, 19 Sep 2013 16:27:33 +0200 |
parents | d322da01d862 |
children | 4713bc0cc0ee |
comparison
equal
deleted
inserted
replaced
7054:f4d6ef50665a | 7055:1f38656b68c4 |
---|---|
425 XPathConstants.STRING, | 425 XPathConstants.STRING, |
426 null, | 426 null, |
427 variables); | 427 variables); |
428 } | 428 } |
429 | 429 |
430 public static String getRiverDGMSrid(String rivername) { | |
431 Map<String, String> variables = new HashMap<String, String>(1); | |
432 variables.put("name", rivername); | |
433 | |
434 Document cfg = Config.getConfig(); | |
435 | |
436 String dgm = (String) XMLUtils.xpath( | |
437 cfg, | |
438 XPATH_FLOODMAP_DGM_PROJECTION, | |
439 XPathConstants.STRING, | |
440 null, | |
441 variables); | |
442 if (logger.isDebugEnabled()) { | |
443 logger.debug("Use EPSG:" + dgm + " for DGM"); | |
444 } | |
445 return dgm; | |
446 } | |
447 | |
448 /** | 430 /** |
449 * Return the (first) Gauge corresponding to the given location(s) of | 431 * Return the (first) Gauge corresponding to the given location(s) of |
450 * the artifact. | 432 * the artifact. |
451 * @param flys the artifact in question. | 433 * @param flys the artifact in question. |
452 * @return (First) gauge of locations of river of artifact. | 434 * @return (First) gauge of locations of river of artifact. |