It seems to work for small enough sizes, yes.

I'm kind of new to rasters in general, so I'm not at all sure of the details 
either, but the idea of the skew parameters is to support rotated rasters (i.e. 
rasters that aren't exactly aligned north/south, or I guess more specifically, 
not aligned to the CRS).
Rotation is specified using skew values and not an angle, which I think is more 
general in that (I think) it also supports non-rectangular grids.

For me the diagrams on https://en.wikipedia.org/wiki/World_file helped a lot to 
understand what's going on. This is linked to from the documentation of 
ST_SetSkew(), but not ST_Reskew() or ST_Resample(). Maybe some documentation 
work is needed there, I'll see if I can find time to help out with that)

Meanwhile I've also figured out that I probably need ST_Resample() with 
non-zero skew values instead of ST_Reskew() because I also need to adjust the 
scale numbers if I want to keep the same pixel size (Pythagoras is meddling 
with this). It looks like ST_Resample() has the same infinite loop issue as 
ST_Reskew() though, and I'm not actually seeing anything ST_Reskew() does that 
ST_Resample() with skew parameters can not do so I'm guessing they use the same 
underlying code.

Frank

On Tue, Feb 25, 2025 at 09:01:30AM -0800, Paul Ramsey wrote:
> Did it (modulo the failure case) work? 
> I’m stuck because I cannot even quite figure out what the function does. 
> Presumably it has utility, but exactly what utility I don’t yet know.
> 
> > On Feb 25, 2025, at 4:13 AM, Frank Gevaerts <frank.gevae...@fks.be> wrote:
> > 
> > ST_ReSkew seemed to me to be the easiest (and fastest) way to get the data 
> > in that form, so it was the first approach to try.
> 

-- 
Frank Gevaerts                                 frank.gevae...@fks.be
fks bvba - Formal and Knowledge Systems        http://www.fks.be/
Grote Baan 79                                  Tel:  ++32-(0)11-21 49 11
B-3511 KURINGEN-HASSELT                        Fax:  ++32-(0)11-22 04 19

Reply via email to