Mercurial > dive4elements > river
view artifacts/src/main/java/org/dive4elements/river/artifacts/access/DGMAccess.java @ 8964:45f1ad66560e
Code cleanup concerning calculations: improved error handling; improved interpolation; bed heights are now always used for spatial discretisation
author | gernotbelger |
---|---|
date | Thu, 29 Mar 2018 15:48:17 +0200 |
parents | a805211690f7 |
children | 8cc192731c7d |
line wrap: on
line source
/* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde * Software engineering by Intevation GmbH * * This file is Free Software under the GNU AGPL (>=v3) * and comes with ABSOLUTELY NO WARRANTY! Check out the * documentation coming with Dive4Elements River for details. */ package org.dive4elements.river.artifacts.access; import org.dive4elements.river.artifacts.D4EArtifact; import org.dive4elements.river.model.DGM; public class DGMAccess extends RangeAccess { private DGM dgm; private String geoJSON; public DGMAccess() { } public DGMAccess(D4EArtifact artifact) { super(artifact); } public DGM getDGM() { if (dgm == null) { Integer sridId = getInteger("dgm"); dgm = DGM.getDGM(sridId); } return dgm; } public String getGeoJSON() { if (geoJSON == null) { geoJSON = getString("uesk.barriers"); } return geoJSON; } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :