Skip to content
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

Use conda for tiler dependencies, support LERC rasters #169

Merged
merged 6 commits into from
Apr 10, 2023

Conversation

mmcfarland
Copy link
Member

Description

Wheels built for rasterio 1.3 to not include a GDAL build that supports LERC geotiffs. This is essentially a breaking change for us, as previous versions did (apparently unintentionally) support that codec. This PR changes the Python dependency management to source rasterio from conda which includes a LERC supported build.

This can likely be reverted if/when a rasterio release gains support.

xref: rasterio/rasterio-wheels#100

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Unit tests continue to pass and manually tested against 3dep HAG tiffs from production which currently fail on main HEAD.

Checklist:

Please delete options that are not relevant.

  • I have performed a self-review
  • Changelog has been updated
  • Documentation has been updated
  • Unit tests pass locally (./scripts/test)
  • Code is linted and styled (./scripts/format)

@mmcfarland mmcfarland changed the title Tom/fix/rasterio conda Install rasterio from conda, support LERC rasters Apr 10, 2023
Comment on lines +7 to +8
RUN python3 -m pip install -r requirements-dev.txt
RUN python3 -m pip install -e ./pccommon -e ./pctiler
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a note that these lines are slightly risky, in that something in pip-land could decide to (re-)install that something that we expect to get from conda (like rasterio).

I manually verified that things were working as expected (that pip wasn't installing rasterio) but things might change in the future, and we wouldn't necessarily know until stuff breaks.

@mmcfarland mmcfarland changed the title Install rasterio from conda, support LERC rasters Use conda for tiler dependencies, support LERC rasters Apr 10, 2023
@mmcfarland mmcfarland merged commit 1f9fc6c into main Apr 10, 2023
@mmcfarland mmcfarland deleted the tom/fix/rasterio-conda branch April 10, 2023 23:02
@ghidalgo3 ghidalgo3 mentioned this pull request Mar 28, 2024
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants