yutannihilation opened a new pull request, #504: URL: https://github.com/apache/sedona-db/pull/504
This pull request implements `ST_Affine()` (and hopefully `ST_Rotate` and `ST_Scale`) using [the glam crate](https://github.com/bitshifter/glam-rs). I chose glam because - while affine transformation is probably not very hard to implement, I might make some silly mistakes - glam is widely used - glam doesn't require any additional dependency by default but I don't have strong opinion. If it is desirable to implement from scratch, I can do so. ``` > SELECT ST_Affine(ST_GeomFromText('POLYGON ZM ((1 0 1 1, 1 1 1 1, 2 2 2 1, 1 0 1 1))'), 10, 0, 0, 0, 10, 0, 0, 0, 10, 0, 0, 0); ┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ st_affine(st_geomfromtext(Utf8("POLYGON ZM ((1 0 1 1, 1 1 1 1, 2 2 2 1, 1 0 1 1))")),Int64(10),Int64(0),Int64(0),Int64(0),Int64(10),Int64(0),Int64(0),Int64(0),Int64(10),Int64(0),Int64(0),Int64(0)) │ │ geometry │ ╞══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╡ │ POLYGON ZM((10 0 10 1,10 10 10 1,20 20 20 1,10 0 10 1)) │ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
