Mercurial > dive4elements > river
view flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/RiverAxisState.java @ 957:e91996b46e3c
Meta data template: Added new choose/when/otherwise construct similiar to XSLT
flys-artifacts/trunk@2376 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 20 Jul 2011 14:59:25 +0000 |
parents | a5ea28339e5b |
children | ae198bef4ba0 |
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.resources.Resources; import de.intevation.flys.artifacts.states.DefaultState.ComputeType; public class RiverAxisState extends OutputState { public static final String I18N_DESCRIPTION = "floodmap.riveraxis"; 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()"); // TODO Add config for background layer WMSLayerFacet facet = new WMSLayerFacet( 0, FLOODMAP_RIVERAXIS, Resources.getMsg(meta, I18N_DESCRIPTION, I18N_DESCRIPTION), ComputeType.INIT, getID(), hash, "http://denmark.atlas/cgi-bin/flys-wms"); // TODO add correct WMS URL facet.addLayer("riveraxis"); // TODO determine extent based on the given geometry facet.setExtent("6.5 49.1 7.0 49.7"); facets.add(facet); return null; } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :