tom@8858: /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde tom@8858: * Software engineering by Intevation GmbH tom@8858: * tom@8858: * This file is Free Software under the GNU AGPL (>=v3) tom@8858: * and comes with ABSOLUTELY NO WARRANTY! Check out the tom@8858: * documentation coming with Dive4Elements River for details. tom@8858: */ tom@8858: teichmann@7055: package org.dive4elements.river.artifacts.access; teichmann@7055: teichmann@7055: import org.dive4elements.river.artifacts.D4EArtifact; teichmann@7055: import org.dive4elements.river.model.DGM; teichmann@7055: teichmann@7055: public class DGMAccess teichmann@7055: extends RangeAccess teichmann@7055: { teichmann@7055: private DGM dgm; teichmann@7055: teichmann@7055: private String geoJSON; teichmann@7055: teichmann@7055: public DGMAccess(D4EArtifact artifact) { teichmann@7055: super(artifact); teichmann@7055: } teichmann@7055: teichmann@7055: public DGM getDGM() { teichmann@7055: if (dgm == null) { teichmann@7055: Integer sridId = getInteger("dgm"); teichmann@7055: dgm = DGM.getDGM(sridId); teichmann@7055: } teichmann@7055: return dgm; teichmann@7055: } teichmann@7055: teichmann@7055: public String getGeoJSON() { teichmann@7055: if (geoJSON == null) { teichmann@7055: geoJSON = getString("uesk.barriers"); teichmann@7055: } teichmann@7055: return geoJSON; teichmann@7055: } teichmann@7055: } teichmann@7055: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :