view flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/RiverAxisState.java @ 950:22bc87a42a0d

First step to factor out the "Datenkorb" logic into a service independent singleton. flys-artifacts/trunk@2367 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 20 Jul 2011 09:56:39 +0000
parents 796c54058dc4
children a5ea28339e5b
line wrap: on
line source
package de.intevation.flys.artifacts.states;

import java.util.List;

import org.apache.log4j.Logger;

import de.intevation.artifacts.CallMeta;

import de.intevation.artifactdatabase.state.Facet;

import de.intevation.flys.artifacts.FLYSArtifact;
import de.intevation.flys.artifacts.model.WMSLayerFacet;
import de.intevation.flys.artifacts.states.DefaultState.ComputeType;


public class RiverAxisState extends OutputState {

    private static final Logger logger = Logger.getLogger(RiverAxisState.class);

    @Override
    public Object computeInit(
        FLYSArtifact artifact,
        String       hash,
        CallMeta     meta,
        List<Facet>  facets
    ) {
        logger.debug("RiverAxisState.computeInit()");

        WMSLayerFacet facet = new WMSLayerFacet(
            0,
            FLOODMAP_RIVERAXIS,
            "RIVER AXIS",
            ComputeType.INIT,
            getID(), hash,
            "http://localhost/wms/"); // TODO add correct WMS URL

        facet.addLayer("riveraxis");

        facets.add(facet);

        return null;
    }
}
// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org