I'm having a problem with ST_MapAlgebra.
An error stating
The set of rasters provided (custom extent included, if appropriate) do not have the same alignment is shown.
I've been trying to know where the error comes from and nothing seems to fix it.
My SELECT is this one:
SELECT ST_MapAlgebra(rast, ST_AddBand( st_setsrid( ST_MakeEmptyRaster( (430276.740772 - 429856.518926)::numeric::integer, (4581915.18987 - 4581587.0391)::numeric::integer, 429856.518926, 4581915.18987, 2), 3857), '8BUI'::text, 1, 0), '[rast1]', '8BUI', 'SECOND') FROM bigraster;
SELECT ST_SetBandNoDataValue(rast, 1) FROM bigraster; is '8BUI'
select st_pixelwidth(rast) FROM bigraster is 2
What else could be wrong?