Task #1283
closedThredds layers colors not visualised on GisViewer
100%
Description
Thredds can approximately manage automatic coloring of the maps, but an additional parameter (colorscalerange) has to be added to the WMS link.
This is one example of working WMS link for a Thredds layer, with the colorscalerange parameter activated:
http://thredds-d-d4s.d4science.org/thredds/wms/public/netcdf/test20.nc?service=wms&version=1.3.0&request=GetMap&layers=analyzed_field&bbox=-85.0,-180.0,85.0,180.0&styles=&width=640&height=480&srs=EPSG:4326&CRS=EPSG:4326&format=image/png&COLORSCALERANGE=auto
On the dev GeoNetwork, the "Generic Raster Layer 5" layer has this WMS link associated. Nevertheless, when visualised on GeoExplorer, the above link becomes:
http://thredds-d-d4s.d4science.org/thredds/wms/public/netcdf/test20.nc?LAYERS=analyzed_field&TRANSPARENT=TRUE&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A4326&_OLSALT=0.5492304935709325&BBOX=90,-360,180,-270&WIDTH=256&HEIGHT=256
thus, the parameter disappears.
This behavious should be fixed for NetCDF based layers.
Subtasks
Related issues
Updated by Francesco Mangiacrapa over 9 years ago
- Status changed from New to In Progress
Updated by Francesco Mangiacrapa over 9 years ago
- Status changed from In Progress to Paused
Updated by Francesco Mangiacrapa over 9 years ago
- Status changed from Paused to In Progress
Updated by Gianpaolo Coro over 9 years ago
- Related to Task #536: Thredds: tomcat runs as root added
Updated by Francesco Mangiacrapa over 9 years ago
In order to manage and discriminate correctly styles and palettes for Geoserver and Thredds layers, I created a procedure to get/retrieve styles as following (pseudocode):
Request GetStyle works? OK -> isGeoserver or isMapserver FAIL -> contains COLOROSCALERANGE? YES -> with value="min,max"? skip; with value="auto"? goto GetMetadata(min,max) NO -> GetMetadata(min,max) OK -> isRaster, add COLOROSCALERANGE with min,max values FAIL -> isNotRaster or isNotThredds, skip
Moreover, I updated the request GetLegendGraphic adding COLORSCALERANGE=min,max to show the legend related to a (Thredds) layer with correct ranges of values.
Updated by Francesco Mangiacrapa over 9 years ago
GeoeExplorer/GisViewer on dev environment (https://dev.d4science.org/group/devvre/geoexplorer) have been updated in order to show all styles availables for Thredds layers retrieved through GetMetadata request.
Updated by Francesco Mangiacrapa over 9 years ago
- Status changed from In Progress to Closed