[mapserver-users] WMS - Change color map of a DEM dynamically
Eduardo Kanegae
eduardo.kanegae at gmail.com
Tue May 30 16:56:59 PDT 2017
Hi,
I'm running MapServer 7.0.5 with GDAL 2.2.0 (CentOS x64) and have a 6Gb DEM
tiff(float32) with overviews. Currently I set up a color ramp in QGIS based
on values/colors of some GRASS color tables such as ETOPO2, SRTM and
Terrain.
Then in mapfile I used a color ramp (colorrange, datarange, rangeitem)
coying colors and limit values from QGIS themes.
I'd like to let users to dynamically change the WMS raster output using
QGIS. Then, it could avoid to duplicating LAYERS declarations such as
"dem_srtmtheme", "dem_etopo2theme" and so on.
Or this (such as SLD) will be possible only for 8bit rasters and vectors?
thanks in advance.
Here's the dump(gdalinfo) of my raster file:
Driver: GTiff/GeoTIFF
Files: /myfile.tif
/myfile.tif.ovr
Size is 45369, 38050
Coordinate System is:
PROJCS["SIRGAS 2000 / UTM zone 23S",
GEOGCS["SIRGAS 2000",
DATUM["Sistema_de_Referencia_Geocentrico_para_las_AmericaS_2000",
SPHEROID["GRS 1980",6378137,298.257222101,
AUTHORITY["EPSG","7019"]],
TOWGS84[0,0,0,0,0,0,0],
AUTHORITY["EPSG","6674"]],
PRIMEM["Greenwich",0,
AUTHORITY["EPSG","8901"]],
UNIT["degree",0.0174532925199433,
AUTHORITY["EPSG","9122"]],
AUTHORITY["EPSG","4674"]],
PROJECTION["Transverse_Mercator"],
PARAMETER["latitude_of_origin",0],
PARAMETER["central_meridian",-45],
PARAMETER["scale_factor",0.9996],
PARAMETER["false_easting",500000],
PARAMETER["false_northing",10000000],
UNIT["metre",1,
AUTHORITY["EPSG","9001"]],
AXIS["Easting",EAST],
AXIS["Northing",NORTH],
AUTHORITY["EPSG","31983"]]
Origin = (268724.500000000000000,7485552.500000000000000)
Pixel Size = (1.000000000000000,-1.000000000000000)
Metadata:
AREA_OR_POINT=Area
Image Structure Metadata:
INTERLEAVE=BAND
Corner Coordinates:
Upper Left ( 268724.500, 7485552.500) ( 47d15' 6.30"W, 22d43'17.44"S)
Lower Left ( 268724.500, 7447502.500) ( 47d15'26.74"W, 23d 3'53.89"S)
Upper Right ( 314093.500, 7485552.500) ( 46d48'36.78"W, 22d43'37.63"S)
Lower Right ( 314093.500, 7447502.500) ( 46d48'53.22"W, 23d 4'14.43"S)
Center ( 291409.000, 7466527.500) ( 47d 2' 0.78"W, 22d53'46.41"S)
Band 1 Block=45369x1 Type=Float32, ColorInterp=Gray
NoData Value=-32768
Overviews: 22685x19025, 11343x9513, 5672x4757, 2836x2379
Eduardo Patto Kanegae
http://www.webmapit.com.br | @webmapit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20170530/2217508d/attachment.htm>
More information about the MapServer-users
mailing list