On lundi 6 août 2018 17:59:03 CEST Daniel Baston wrote: > Hello, > > Is it possible to scale a raster based on min and max values determined on > a per-file basis, rather than a per-layer or per-WMS-request basis? I have > a layer that reads data from one of many possible GeoTIFFs, depending on > variables that are provided as query-string parameters. Each file has > different ranges of values, so I can't manually specify a scaling range > with PROCESSING "SCALE_1=200,400" or the like. But if I use PROCESSING > "SCALE=AUTO" then a range is determined for each request, which produces > discontinuities when clients generated tiled requests. > > Is it possible for MapServer to load raster min and max values from > statistics written by GDAL to raster metadata, or is there some other way > to solve the problem?
You could create a VRT that would already by rescaled with gdal_translate -scale -- Spatialys - Geospatial professional services http://www.spatialys.com _______________________________________________ mapserver-users mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/mapserver-users
