Mercurial > dive4elements > river
view artifacts/src/main/java/org/dive4elements/river/artifacts/access/DGMAccess.java @ 9801:1d7a72a50183 3.2.x tip
Assume Compose V2, consistently
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 23 Nov 2023 10:14:13 +0100 |
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 :