New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added support for Proj6 and GDAL 3 #1700
Conversation
@sgillies Some of the build errors are related to AWS secrets which I think is something you have to add. I see the GDAL 3.0 builds are missing proj6, I can look at the travis script for that. |
@@ -72,6 +72,7 @@ def test_read_epsg(): | |||
assert src.crs.to_epsg() == 32618 | |||
|
|||
|
|||
@requires_gdal_lt_3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
from rasterio.rio.main import main_group | ||
|
||
|
||
@requires_gdal_lt_3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We still need this test with GDAL 3. It confirms that the environment patching we do for wheels distributions will work. Same for the other three below.
@@ -21,6 +23,7 @@ def test_gdal_data_find_file(): | |||
GDALDataFinder().find_file("header.dxf") | |||
|
|||
|
|||
@requires_gdal_lt_3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case, we'll need to change the implementation for GDAL 3, and look for the new sqlite file in the wheel.
Also, setting PROJ_LIB is out of fashion with 3.0, there's a new function to do this: OSGeo/gdal#1191.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@normanb a few changes will be needed yet. They're complicated.
I'm not sure what's up with the failing builds on Travis.
0b29205
to
62811bc
Compare
Looks like |
I believe it used to be |
@normanb I recommend putting this work on hold. The wheel related issues are complicated and I'm extremely busy at the moment with little time for review. I was planning to work on support for 3.0 later in June. |
@sgillies ok, I will fix the issue with proj configurations between gdal versions and park this, lmk when you want to pick this up in June and I may be able to work with you depending on my schedule. cc @jakebolewski |
The difference between GDAL versions is |
@vincentsarago GDAL 3 isn't yet a must-have at work, so this issue gets bumped by higher priority tasks. One thing that would help: if rasterio power users would pick up some of the project support questions, i'd have more time to work on this feature. |
Heads up: I'm going to delete every single non-technical comment on this issue. If you're not a GDAL or Rasterio packager with experience building GDAL 3 and Proj 6, just sit tight. |
Superceded by #1729. |
@sgillies I have added support for GDAL3 and Proj6. I have tested this with Python 3.6 and the CRS pytests.