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

Fix write_cog for geoboxes with null crs #186

Merged
merged 1 commit into from
Nov 20, 2024
Merged

Conversation

Ariana-B
Copy link
Contributor

@Ariana-B Ariana-B commented Nov 7, 2024

If a geobox has a CRS value of None, it will break write-cog - the crs value in rio_opts will be set to str(None), which causes rio_copy to error: rasterio.errors.CRSError: The WKT could not be parsed. OGR Error code 5

Copy link

codecov bot commented Nov 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.44%. Comparing base (a00c882) to head (198714d).
Report is 1 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #186   +/-   ##
========================================
  Coverage    95.44%   95.44%           
========================================
  Files           31       31           
  Lines         5534     5534           
========================================
  Hits          5282     5282           
  Misses         252      252           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

@Ariana-B Ariana-B requested a review from Kirill888 November 7, 2024 23:53
Copy link

github-actions bot commented Nov 7, 2024

@github-actions github-actions bot temporarily deployed to pull request November 7, 2024 23:54 Inactive
@Kirill888 Kirill888 merged commit 210ae22 into develop Nov 20, 2024
20 checks passed
@Kirill888 Kirill888 deleted the rio_opts_none_crs branch November 20, 2024 07:49
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.

2 participants