Skip to content

Commit

Permalink
Update docs to include new wmsConfig options
Browse files Browse the repository at this point in the history
  • Loading branch information
lesserwhirls committed Dec 16, 2024
1 parent 31d9c34 commit 70469a1
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 15 deletions.
14 changes: 10 additions & 4 deletions docs/adminguide/src/site/pages/thredds/WmsConfig.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Customizing WMS
last_updated: 2021-08-06
last_updated: 2024-12-16
sidebar: admin_sidebar
toc: false
permalink: customizing_wms.html
Expand All @@ -16,15 +16,21 @@ An example `wmsConfig.xml` file is shipped with the TDS, which looks like:
{{ rmd }}
~~~

Note that as of TDS v5.6, the Document Type Definition has been updated from `wmsConfig.dtd` to `wmsConfig_2_0.dtd`.
This file provides a way to set default values for WMS parameters when they are missing from a request.
In general, you can provide default values for the following properties:
* _allowFeatureInfo_: Allow _GetFeatureInfo_ requests.
* _defaultColorScaleRange_: Range of values to when generating images.
* _defaultPaletteName_: A color palette name (see the [ncWMS User Guide](https://reading-escience-centre.gitbooks.io/ncwms-user-guide/content/04-usage.html#getmap){:target="_blank"} for options).
* _defaultNumColorBands_: The number of colour bands to use.
* _defaultAboveMaxColor_: The color to plot values above the maximum end of the scale range.
* _defaultBelowMinColor_: The color to plot values below the minimum end of the scale range.
* _defaultNoDataColor_: The color to use for values which have no data.
* _defaultOpacity_: The percentage opacity of the final output image.
* _defaultPaletteName_: A color palette name.
* _defaultNumColorBands_: The number of color bands to use.
* _logScaling_: Use a logarithmic scale when generating images.
* _intervalTime_: Deprecated, does not work.
* _intervalTime_: Deprecated, is not supported in the new wms service.

Details regarding these properties can be found in the [ncWMS User Guide](https://reading-escience-centre.gitbooks.io/ncwms-user-guide/content/04-usage.html#getmap){:target="_blank"}
There are two main elements to the `wmsConfig.xml` file - the `<global>`, and the `<overrides>`.
Each controls the level of granularity at which default values are chosen.
Settings in `<overrides>` take precedence over settings in `<global>`.
Expand Down
28 changes: 23 additions & 5 deletions docs/quickstart/src/site/pages/tds_tutorial/production/Upgrade.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Upgrading to TDS version 5
last_updated: 2020-08-26
last_updated: 2024-12-16
sidebar: quickstart_sidebar
toc: false
permalink: upgrade.html
Expand All @@ -11,12 +11,12 @@ permalink: upgrade.html
* Java 11 is required
* Tomcat 8 (servlet 3.1)
* On the command line when starting up Tomcat/TDS, you must specify `-Dtds.content.root.path=<content root>` where `<content root>` points to the top of the content directory.
Note that this is `${tomcat_home}/content/`, not`${tomcat_home}/content/thredds/`.
Note, in this example, that this is `/data/content/`, not`/data/content/thredds/`.
Don't forget the trailing slash.
For example:

~~~bash
-Dtds.content.root.path=/opt/tomcat-home/content/
-Dtds.content.root.path=/data/content/
~~~

## Overview
Expand Down Expand Up @@ -77,10 +77,28 @@ The following is no longer used:

* By default, most services are enabled, but may still be turned off in `threddsConfig.xml`.

### WMS/ Godiva
TDS 5.x uses the [edal-java](https://github.com/Reading-eScience-Centre/edal-java) library (formerly ncWMS 1.x).
As this is a major version change to that library, there may be some breaking changes.
See also the [edal user guide](https://reading-escience-centre.gitbooks.io/edal-user-guide/content/) and the
[changes from ncWMS 1.x](https://reading-escience-centre.gitbooks.io/ncwms-user-guide/content/01-ncwms1x.html#changes).
Starting with TDS 5.6, `wmsConfig.xml` has been extended to support four new default options:
* defaultAboveMaxColor
* defaultBelowMinColor
* defaultNoDataColor
* defaultOpacity

As a result, the Document Type Definition used in the `DOCTYPE` element of the config file has been updated from `wmsConfig.dtd` to `wmsConfig_2_0.dtd`.

### ncISO services
To use the ncISO services, you must add the `tds-plugin-jar-with-dependencies.jar` artifact to your TDS for TDS versions >= 5.5.
For TDS versions prior to 5.5 this artifact was included in the TDS war file.
See [ncISO configuration](adding_ogc_iso_services.html#nciso-configuration) for more details.

## Java Web Start

Java Web Start has been [deprecated as of Java 9](https://www.oracle.com/technetwork/java/javase/9-deprecated-features-3745636.html#JDK-8184998){:target="_blank"}, and has been removed in [Java 11](https://www.oracle.com/technetwork/java/javase/11-relnote-issues-5012449.html){:target="_blank"}, which is the Long-term Release post-Java 8.
Due to these changes, the netCDF-Java project no longer provide Java Web Start files as of version 5.0.0.
Due to these changes, the netCDF-Java project no longer provide Java Web Start files as of version 5.0.
Following suite, the TDS no longer provide any Web Start based Viewers on Dataset pages out of the box.

### Catalogs
Expand Down Expand Up @@ -147,7 +165,7 @@ Schema version is now `1.2`.

* Feature Collection details are [here](feature_collections_ref.html)

### Recommendations for 5.0 catalogs
### Recommendations for 5.x catalogs

* Put all `<datasetRoot>` elements in root catalog.
* Put all `<catalogScan>` elements in root catalog.
Expand Down
11 changes: 9 additions & 2 deletions docs/userguide/src/site/pages/tds_tutorial/production/Upgrade.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Upgrading to TDS version 5
last_updated: 2020-08-26
last_updated: 2024-12-16
sidebar: user_sidebar
toc: false
permalink: upgrade.html
Expand All @@ -10,7 +10,7 @@ permalink: upgrade.html

* Java and tomcat versions listed [here](install_java_tomcat.html#system-requirements)
* On the command line when starting up Tomcat/TDS, you must specify `-Dtds.content.root.path=<content root>` where `<content root>` points to the top of the content directory.
Note, in this exmaple, that this is `/data/content/`, not`/data/content/thredds/`.
Note, in this example, that this is `/data/content/`, not`/data/content/thredds/`.
Don't forget the trailing slash.
For example:

Expand Down Expand Up @@ -81,6 +81,13 @@ TDS 5.x uses the [edal-java](https://github.com/Reading-eScience-Centre/edal-jav
As this is a major version change to that library, there may be some breaking changes.
See also the [edal user guide](https://reading-escience-centre.gitbooks.io/edal-user-guide/content/) and the
[changes from ncWMS 1.x](https://reading-escience-centre.gitbooks.io/ncwms-user-guide/content/01-ncwms1x.html#changes).
Starting with TDS 5.6, `wmsConfig.xml` has been extended to support four new default options:
* defaultAboveMaxColor
* defaultBelowMinColor
* defaultNoDataColor
* defaultOpacity

As a result, the Document Type Definition used in the `DOCTYPE` element of the config file has been updated from `wmsConfig.dtd` to `wmsConfig_2_0.dtd`.

### ncISO services
To use the ncISO services, you must add the `tds-plugin-jar-with-dependencies.jar` artifact to your TDS for TDS versions >= 5.5.
Expand Down
14 changes: 10 additions & 4 deletions docs/userguide/src/site/pages/thredds/WmsConfig.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Customizing WMS
last_updated: 2021-08-06
last_updated: 2024-12-16
sidebar: user_sidebar
toc: false
permalink: customizing_wms.html
Expand All @@ -16,15 +16,21 @@ An example `wmsConfig.xml` file is shipped with the TDS, which looks like:
{{ rmd }}
~~~

Note that as of TDS v5.6, the Document Type Definition has been updated from `wmsConfig.dtd` to `wmsConfig_2_0.dtd`.
This file provides a way to set default values for WMS parameters when they are missing from a request.
In general, you can provide default values for the following properties:
* _allowFeatureInfo_: Allow _GetFeatureInfo_ requests.
* _defaultColorScaleRange_: Range of values to when generating images.
* _defaultPaletteName_: A color palette name (see the [ncWMS User Guide](https://reading-escience-centre.gitbooks.io/ncwms-user-guide/content/04-usage.html#getmap){:target="_blank"} for options).
* _defaultNumColorBands_: The number of colour bands to use.
* _defaultAboveMaxColor_: The color to plot values above the maximum end of the scale range.
* _defaultBelowMinColor_: The color to plot values below the minimum end of the scale range.
* _defaultNoDataColor_: The color to use for values which have no data.
* _defaultOpacity_: The percentage opacity of the final output image.
* _defaultPaletteName_: A color palette name.
* _defaultNumColorBands_: The number of color bands to use.
* _logScaling_: Use a logarithmic scale when generating images.
* _intervalTime_: Deprecated, does not work.
* _intervalTime_: Deprecated, is not supported in the new wms service.

Details regarding these properties can be found in the [ncWMS User Guide](https://reading-escience-centre.gitbooks.io/ncwms-user-guide/content/04-usage.html#getmap){:target="_blank"}
There are two main elements to the `wmsConfig.xml` file - the `<global>`, and the `<overrides>`.
Each controls the level of granularity at which default values are chosen.
Settings in `<overrides>` take precedence over settings in `<global>`.
Expand Down

0 comments on commit 70469a1

Please sign in to comment.