Open evetion opened 1 year ago
A counter argument is that the main current use of this conversion is in ArchGDAL reproject
(from Rasters and GeoDataframes). I would prefer no to add a Proj dep where we already have ArchGDAL. You would have to add it to GeoDataframes.jl as well.
I think we just need to make a backend interface so ArchGDAL also still works. We can use the Val{:ArchGDAL}
dispatch trick.
If we're switching reproject to Proj, can we also switch this now? Or implement the backend interface, though I'm not sure how that might work.
Let's switch.
Ugh it may be a bit of a pain with versioning... What happens with compilation when both packages are doing the same type piracy.
DiskArrays also has Rasters stuck on old GDAL via CommonDataModel so we actually can't get away from it easily.
The plan for switching to Proj might be:
Haven't thought about it much, but looks good to me, except that Proj 1.7 should be replaced by 1.8 and 1.8 by 1.9. I just tagged 1.8 which has the last PROJ build, and am rebuilding GDAL to be compatible with that last build.
Related to #2.
With https://github.com/JuliaGeo/Proj.jl/pull/74 Proj could also convert between GFT.CRS instances. Proj itself is a lighter dependency than ArchGDAL, and is actually what GDAL itself uses (indirectly).