Rasters.jl icon indicating copy to clipboard operation
Rasters.jl copied to clipboard

Use Proj directly for reprojection

Open asinghvi17 opened this issue 1 year ago • 4 comments

R is able to gain Julia equivalent speed by going directly through Proj instead of GDAL

asinghvi17 avatar Apr 13 '24 23:04 asinghvi17

See kadyb/vector-benchmark#12

asinghvi17 avatar Apr 13 '24 23:04 asinghvi17

Yeah. It because we already had the dep.

rafaqz avatar Apr 14 '24 07:04 rafaqz

by the way, I just tested proj_trans_generic on an array (since I've been doing a bunch of reinterpret stuff :D) and it turns out, it is almost exactly the same timing as using GO.reproject! So you probably don't need to make it too fancy unless you have a huge vector that you want to transform in place, in which case proj_trans_generic might be a bit faster.

asinghvi17 avatar Apr 14 '24 13:04 asinghvi17

Yeah tried that too in the past. Julias C calls are so fast it makes no difference

rafaqz avatar Apr 14 '24 14:04 rafaqz