jesspav opened a new pull request, #383:
URL: https://github.com/apache/sedona-db/pull/383
Adds raster to world coordinate functions for x and y coordinates.
## Example run
```
> SELECT rs_rastertoworldcoordy(rs_example(), 0, 1);
┌────────────────────────────────────────────────────────┐
│ rs_rastertoworldcoordy(rs_example(),Int64(0),Int64(1)) │
│ float64 │
╞════════════════════════════════════════════════════════╡
│ 81.07 │
└────────────────────────────────────────────────────────┘
1 row(s)/1 column(s) fetched.
Elapsed 0.006 seconds.
> SELECT rs_rastertoworldcoordx(rs_example(), 0, 1);
┌────────────────────────────────────────────────────────┐
│ rs_rastertoworldcoordx(rs_example(),Int64(0),Int64(1)) │
│ float64 │
╞════════════════════════════════════════════════════════╡
│ 44.08 │
└────────────────────────────────────────────────────────┘
```
## Bench
40% improvement through inlining.
```
Benchmarking
native-raster-rs_rastertoworldcoordx-ArrayScalarScalar(Raster(64, 64), Int32(0,
63), Int32(0, 63)): Warming up for 3.0000Benchmarking
native-raster-rs_rastertoworldcoordx-ArrayScalarScalar(Raster(64, 64), Int32(0,
63), Int32(0, 63)): Collecting 100
samplenative-raster-rs_rastertoworldcoordx-ArrayScalarScalar(Raster(64, 64),
Int32(0, 63), Int32(0, 63))
time: [998.81 µs 1.0012 ms 1.0034 ms]
Found 14 outliers among 100 measurements (14.00%)
7 (7.00%) low severe
7 (7.00%) low mild
Benchmarking
native-raster-rs_rastertoworldcoordy-ArrayScalarScalar(Raster(64, 64), Int32(0,
63), Int32(0, 63)): Warming up for 3.0000Benchmarking
native-raster-rs_rastertoworldcoordy-ArrayScalarScalar(Raster(64, 64), Int32(0,
63), Int32(0, 63)): Collecting 100
samplenative-raster-rs_rastertoworldcoordy-ArrayScalarScalar(Raster(64, 64),
Int32(0, 63), Int32(0, 63))
time: [1.0398 ms 1.0425 ms 1.0451 ms]
Found 13 outliers among 100 measurements (13.00%)
3 (3.00%) low severe
9 (9.00%) low mild
1 (1.00%) high mild
```
--
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]