Skip to content

Commit

Permalink
Support BigTIFF for image_to_cog
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed Nov 5, 2024
1 parent 7b79f64 commit 9b68e35
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions leafmap/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -3752,6 +3752,10 @@ def image_to_cog(source, dst_path=None, profile="deflate", **kwargs):
dst_path = check_file_path(dst_path)

dst_profile = cog_profiles.get(profile)
if "dst_kwargs" in kwargs:
dst_profile.update(kwargs.pop("dst_kwargs"))

dst_profile["BIGTIFF"] = "IF_NEEDED"
cog_translate(source, dst_path, dst_profile, **kwargs)


Expand Down

0 comments on commit 9b68e35

Please sign in to comment.