Mercurial > dive4elements > river
view flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/WMSBackgroundState.java @ 945:59ae2a823e73
Use the Facet.toXML() method to write facet elements into the DESCRIBE document of the Collection.
flys-artifacts/trunk@2360 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 19 Jul 2011 10:37:57 +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 WMSBackgroundState extends OutputState { private static final Logger logger = Logger.getLogger(WMSBackgroundState.class); @Override public Object computeInit( FLYSArtifact artifact, String hash, CallMeta meta, List<Facet> facets ) { logger.debug("WMSBackgroundState.computeInit()"); WMSLayerFacet facet = new WMSLayerFacet( 0, FLOODMAP_WMSBACKGROUND, "WMS-BACKGROUND", ComputeType.INIT, getID(), hash, "http://vmap0.tiles.osgeo.org/wms/vmap0"); facet.addLayer("basic"); facets.add(facet); return null; } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :