<div dir="ltr">Hi, list!<div><br></div><div style>I have a table of points that form a grid of equally distributed 1000x1000 points (1 mln records in a table). </div><div style>The fields are lon,lat,vale,valv,geom</div><div style>
My goal is to create a 1000x1000 px raster with two bands, representing vale and valv values from points of initial table.</div><div style>I guess the best way to do it is to sort the initial table by lon, lat and form a 2 dimensional array for each of the band, so I can then put it in ST_SetValues as an argument. Then it'll fill the entire band with values at once instead of using ST_SetValue to burn each value into raster pixel by pixel.</div>
<div style>Can someone give an example SQL expression to create a 2 dimensional array from table of values?</div></div>