How to properly rotate a raster
Regina Obe
lr at pcorp.us
Mon Mar 18 06:01:48 PDT 2024
By size, what do you mean exactly? It would change the width and height.
What are you expecting rotation to do. Perhaps you can give example out of the below and some sample
ST_Width, ST_Height, ST_SkewX before and after and what you were expecting.
https://postgis.net/docs/en/RT_ST_SetRotation.html
From: Eloi Ribeiro <mail at eloiribeiro.eu>
Sent: Monday, March 18, 2024 4:57 AM
To: PostGIS Users Discussion <postgis-users at lists.osgeo.org>
Subject: How to properly rotate a raster
Hi all,
I need to rotate a raster, for that I'm using the function ST_SetRotation, like so:
CREATE TABLE plot_3_rotated AS
SELECT ST_SetRotation(rast, 0.03516235334249185) rast
FROM plot_3;
But I see that is not producing the expected results and is changing size of the raster. What am I doing wrong?
Cheers,
Eloi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20240318/3dfbd38b/attachment.htm>
More information about the postgis-users
mailing list