[mapserver-users] Mapfile classifying using two separate raster files?

Eichner, Andreas - SID Andreas.Eichner at sid.sachsen.de
Thu Jul 23 00:56:14 PDT 2015


You might be able to virtually combine those two rasters into one using GDAL's VRT format (http://www.gdal.org/gdal_vrttut.html).

HTH

> -----Ursprüngliche Nachricht-----
> Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-
> bounces at lists.osgeo.org] Im Auftrag von Matt McClelland
> Gesendet: Donnerstag, 23. Juli 2015 08:54
> An: mapserver-users at lists.osgeo.org
> Betreff: [mapserver-users] Mapfile classifying using two separate raster
> files?
> 
> Hi
> 
> I have two raster files one for vegetation and one for population density.
> The two rasters (tif's) are at different scales
> 
> I am using value based classification to paint the map green where
> vegetation values are high.
> Is there a way I can classify based on values from the two separate files
> in the same layer
> I can't see how this will  work as you can only have one data item per
> layer?? (but worth asking)
> 
> I am wanting to be able to do something like
> EXPRESSION ([veg] <= 50 and [population] > 500)
> 
> The only option I can think of is to make the two files into a single
> multiband tiff?  This seems wasteful as one is much lower resolution then
> the other.
> 
> thoughts??
> 
> thanks
> 
> Matt  :)
> 
> 
> <http://www.wildwalks.com/office/newsletters/>


More information about the MapServer-users mailing list