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

2015-07-23 Thread Eichner, Andreas - SID
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-boun...@lists.osgeo.org [mailto:mapserver-users-
 boun...@lists.osgeo.org] Im Auftrag von Matt McClelland
 Gesendet: Donnerstag, 23. Juli 2015 08:54
 An: mapserver-users@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/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

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

2015-07-23 Thread Matt McClelland
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/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

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

2015-07-23 Thread Lars Schylberg
I would try to do a VRT file that describes both raster files and work 
with that.


I don't have an good example but maybe this could get You started 
together with the GDAL docs.


http://www.paolocorti.net/2012/03/08/gdal_virtual_formats/

/Lars S.

Matt McClelland skrev den 2015-07-23 08:54:

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  :)



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users