I have refined my query so that I am using MapAlgebraExpr on the normalised distance and density rasters and exporting as a new table. Then I am using a second, new MapAlgerbaExpr query with this table and the normalised slope surface.
However it is returning, 'The two rasters provided do not have the same alignment. Returning NULL'. Looking at the documentation, I tried ST_Resample the slope raster before passing it to the MapAlgebraExpr, using the table from the first MapAlgebra as the Resample reference. The query ran but this new Raster returned as empty. Can anyone explain why? Current query is: CREATE TABLE Metro_location AS( SELECT ST_MapAlgebraExpr(ST_Resample(ST_MapAlgebraExpr((ST_Slope(a.rast,1,'32BF')),1,'32BF','((244-[rast])/244)'), b.rast), 1, b.rast, 1, '([rast1] * 0.2) + [rast2]', '32BF') as rast, 1 as rid FROM Slope a, DensDist b ); Kind Regards, James ----- GIS Undergraduate -- View this message in context: http://postgis.17.n6.nabble.com/MapAlgebra-on-three-Rasters-tp4917643p4930657.html Sent from the PostGIS - User mailing list archive at Nabble.com. _______________________________________________ postgis-users mailing list postgis-users@postgis.refractions.net http://postgis.refractions.net/mailman/listinfo/postgis-users