WS Generator

Description

Returns a WFS request's output as a SAX stream (or error message).
This generator redirects WFS request to another server, using parameters specified in the Cocoon sitemap.

This components has its own cache mechanism (see WMS Reader page for details.

Some parameters are defined when configuring the component, while others are defined in the match (actually, some may be defined in the component configuration and re-defined, if need be, during matching).

Sitemap component configuration

<map:generatore name="wfs" src="org.cocoondev.geoid.generation.WFSGenerator" logger="geoid" server="www.myserver.com:8080" path="geoserver/wfs" version="1.0.0" expires-seconds="0"/>
  1. server The address on which the map server is serving requests
  2. path Path of the map-server
  3. version Version of WMS to use
  4. expires-seconds The cache expiration time in seconds. Use 0 for no caching.

Sample sitemap pipeline

<map:read type="wmf"> <map:parameter name="typename" value="topp:states"/> <map:parameter name="propertyname" value="STATE_NAME,STATE_ABBR"/> <map:parameter name="bbox" value="-84.375,39.375,-78.75,45"/> <map:parameter name="maxfeatures" value="30"/> <map:parameter name="version" value="1.0.0"/> </map:read>

All of the above parameters, bar the GeoServer-specific cql_filter one, are defined in the WMS standard, some of them have default values for added convenience. Other parameters may be added to a request, just see the WMS standard for details.