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

feat: adding an alpha mask to ortho map tiles for pixels in the tile but outside the image #53

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

jtblack-aws
Copy link
Contributor

@jtblack-aws jtblack-aws commented Sep 12, 2024

Issue #, if available: n/a

Notes

Adding an alpha layer to map tiles to account for cases when the image data does not completely fill the map tile. Previously these pixels would be filled with black which obstructed the view of lower map layers.

Checklist

Before you submit a pull request, please make sure you have the following:

  • Code changes are compact and well-structured to facilitate easy review
  • Changes are documented in the README.md and other relevant documentation pages
  • PR title and description accurately reflect the changes and are detailed enough for historical tracking
  • PR contains tests that cover all new code and the code has been manual tested
  • All new dependencies are declared (if any), and no unnecessary libraries are added
  • Performance impacts (if any) of the changes are evaluated and documented
  • Security implications of the changes (if any) are reviewed and addressed
  • I have read the Contributing Guidelines and agree to follow the Code of Conduct

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@@ -17,4 +17,4 @@ partial_branches =

show_missing = True

fail_under = 60
fail_under = 96
Copy link
Collaborator

Choose a reason for hiding this comment

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

nice!

@@ -223,6 +223,31 @@ def test_create_map_tiles_for_image(self):
assert tile_dataset.RasterYSize == 256
assert tile_dataset.GetDriver().ShortName == GDALImageFormats.PNG

def test_create_map_tiles_for_color_image(self):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not to address now - but I have been adding comments to our tests to describe what they are doing in other packages. Just leaving a breadcrumb for this here.

@jtblack-aws jtblack-aws merged commit fa0eef8 into main Sep 18, 2024
1 check passed
@jtblack-aws jtblack-aws deleted the feat/map-alpha-mask branch September 18, 2024 16:19
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