Configure TDS To Allow WCS Access
Out of the box, the TDS distribution will have WCS enabled.
If you do not wish to use this service, it must be explicitly disabled in the threddsConfig.xml file.
Please see the threddsConfig.xml file documentation for information on how to disable these services.
The default threddsConfig.xml file (which should now be in your ${tds.content.root.path}/content/thredds directory) contains commented out sections for each of these services.
WCS Configuration
The following section in the threddsConfig.xml file controls the WCS service:
<WCS>
<allow>true</allow>
...
</WCS>
Additional WCS configuration options can be set in the threddsConfig.xml file.
More details are available in the WCS section of the threddsConfig.xml file documentation.
Adding WCS And WMS Services
As long as the WCS service is enabled, all that is required for the TDS to provide WCS access to datasets is for those datasets to reference the WCS service element.
Adding them to an existing compound service would look something like this:
<service name="wcs" serviceType="WCS" base="/thredds/wcs/" />
Example: Setup WCS Access For NAM Data
-
Edit the TDS configuration file and allow
WCSservices:$ cd ${tds.content.root.path}/thredds $ vim threddsConfig.xmland add/replace the
WCSelement:<WCS> <allow>true </allow> </WCS>(this is optional, as the service is on by default)
-
Edit the
catalog.xmlfile and addWCSservice to the NAM dataset:<service name="wcs" serviceType="WCS" base="/thredds/wcs/" /> -
Restart Tomcat so the TDS is reinitialized:
$ cd ${tomcat_home}/bin $ ./shutdown.sh $ ./startup.sh -
Test that
WCSis working:- Bring the catalog up in a browser: http://localhost:8080/thredds/catalog.html
- Click down to one of the NAM dataset pages.
- Select the
WCSAccess link