Trying to get gdal and whichever associated python bindings installed with the oldish OS my company uses is extremely painful, especially so in ci/cd and testing situations. I keep coming across libraries such as rasterio or fiona, but it seems like everything has this whole mess of dependencies, some of which the OS doesn't have.
It's especially frustrating because what I'm doing isn't complex..
I have a geotiff file that's easy to gdal.open(..)
. I basically just need a footprint. If I could get to WKT or any other format but geotiff I can easily do what I need to with shapely/numpy/etc. What I need isn't too far off from what's found in this answer, I just need to do it without gdal.
Said another way, there is some GEO data in a geotiff, how can I get the geometry or footprint from it in python without using gdal?
conda
in your ci/cd/testing toolchain. It's simple to automate building a reproducible conda env, run tests and build & deploy releases. And it makes it easy to install GDAL on oldish OSs. – user2856 May 17 '18 at 3:40