You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment TerriaJS correctly reads the available styles that can be used with a THREDDS WMS layer from the GetCapabilities document i.e. the <Style> elements embedded in the element. e.g.:
<Style>
<Name>raster/default</Name>
<Title>raster/default</Title>
<Abstract>raster style, using the default palette. Available palettes can be found in the response to https://thredds.roam.im:443/thredds/wms/roam/292/breakertypes-reprojected.nc?request=GetMetadata&item=layerDetails&layerName=H_mean </Abstract>
<LegendURL width="110" height="264">
<Format>image/png</Format>
<OnlineResource xlink:type="simple" xlink:href="https://thredds.roam.im:443/thredds/wms/roam/292/breakertypes-reprojected.nc?REQUEST=GetLegendGraphic&PALETTE=default&LAYERS=H_mean&STYLES=raster/default"/>
</LegendURL>
</Style>
These styles appear as a drop down in the Layer info displayed in the workbench:
However the GetLegendGraphic URLs included in the <Style> elements specify the PALETTE as default. This means TerriaJS can only use the default palette to colour a THREDDS layer.
But the <Style> element also provides info on how to retrieve the list of palettes that can be used to style the layer. This is a THREDDS specific GetMetadata call (which conveniently returns JSON):
Included in this information is a 'defaultPalette' key that the THREDDS admin can set for the layer.
It would be great if:
the list of Palettes returned by this call could be displayed as a drop down in the workbench labelled as 'Palettes:'
TerriaJS would respect the 'defaultPalette' and 'scaleRange' information returned by the GetMetadata call. (As regards 'scaleRange', this information needs to be specified in the TerriaJS catalog item using 'colorScaleMinimum' and 'colorScaleMaximum' and our THREDDS server might not be respecting our rules for this, however TerriaJS should be able to use whatever GetMetadata returns)
The text was updated successfully, but these errors were encountered:
At the moment TerriaJS correctly reads the available styles that can be used with a THREDDS WMS layer from the GetCapabilities document i.e. the <Style> elements embedded in the element. e.g.:
These styles appear as a drop down in the Layer info displayed in the workbench:
However the GetLegendGraphic URLs included in the <Style> elements specify the PALETTE as default. This means TerriaJS can only use the default palette to colour a THREDDS layer.
But the <Style> element also provides info on how to retrieve the list of palettes that can be used to style the layer. This is a THREDDS specific GetMetadata call (which conveniently returns JSON):
e.g. https://thredds.roam.im:443/thredds/wms/roam/292/breakertypes-reprojected.nc?request=GetMetadata&item=layerDetails&layerName=H_mean
Which returns:
Included in this information is a 'defaultPalette' key that the THREDDS admin can set for the layer.
It would be great if:
The text was updated successfully, but these errors were encountered: