Project

General

Profile

Actions

Task #1283

closed

Thredds layers colors not visualised on GisViewer

Added by Gianpaolo Coro over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Category:
Application
Start date:
Nov 23, 2015
Due date:
% Done:

100%

Estimated time:
(Total: 0.00 h)
Infrastructure:
Development

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

Related to D4Science Infrastructure - Task #536: Thredds: tomcat runs as rootClosedTommaso PiccioliSep 23, 2015

Actions
Actions #2

Updated by Francesco Mangiacrapa over 9 years ago

  • Status changed from New to In Progress
Actions #3

Updated by Francesco Mangiacrapa over 9 years ago

  • Status changed from In Progress to Paused
Actions #4

Updated by Francesco Mangiacrapa over 9 years ago

  • Status changed from Paused to In Progress
Actions #5

Updated by Gianpaolo Coro over 9 years ago

  • Related to Task #536: Thredds: tomcat runs as root added
Actions #7

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.

Actions #8

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.

Actions #9

Updated by Francesco Mangiacrapa over 9 years ago

  • Status changed from In Progress to Closed
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 8.91 MB)