JuliaGeo / GeoFormatTypes.jl

Wrapper types for spatial data formats like well known text, KML, Proj4 strings.
https://juliageo.github.io/GeoFormatTypes.jl/stable
MIT License
6 stars 0 forks source link

Decide on blessed conversion implementation or API #21

Open evetion opened 1 year ago

evetion commented 1 year ago

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).

rafaqz commented 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.

asinghvi17 commented 3 weeks ago

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.

rafaqz commented 3 weeks ago

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.

asinghvi17 commented 3 weeks ago

The plan for switching to Proj might be:

visr commented 3 weeks ago

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.