comparison artifacts/src/main/java/org/dive4elements/river/artifacts/access/DGMAccess.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
children a805211690f7
comparison
equal deleted inserted replaced
7054:f4d6ef50665a 7055:1f38656b68c4
1 package org.dive4elements.river.artifacts.access;
2
3 import org.dive4elements.river.artifacts.D4EArtifact;
4 import org.dive4elements.river.model.DGM;
5
6 public class DGMAccess
7 extends RangeAccess
8 {
9 private DGM dgm;
10
11 private String geoJSON;
12
13 public DGMAccess() {
14 }
15
16 public DGMAccess(D4EArtifact artifact) {
17 super(artifact);
18 }
19
20 public DGM getDGM() {
21 if (dgm == null) {
22 Integer sridId = getInteger("dgm");
23 dgm = DGM.getDGM(sridId);
24 }
25 return dgm;
26 }
27
28 public String getGeoJSON() {
29 if (geoJSON == null) {
30 geoJSON = getString("uesk.barriers");
31 }
32 return geoJSON;
33 }
34 }
35 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org