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

Add Geospatial Masking Functionality #535

Draft
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

DGalexander
Copy link
Collaborator

@DGalexander DGalexander commented Nov 22, 2024

Summary

This PR introduces geospatial masking functionality to the MapReader project. The geospatial masking workflow leverages OS Data Hub APIs to extract and mask geospatial data, providing a foundation for enhanced map boundary detection.

Fixes #532

Describe your changes

Key Changes
Added geospatial_masking.py:

  • Implements:
  • BBOX generation.
  • API calls to OS Data Hub.
  • Mask creation and export as GeoTIFF and shapefiles.

Modified mapreader->load->images.py:

Integrated geospatial masking functions into the load subpackage.

Testing:

Added unit tests for geospatial masking in tests/test_geospatial_masking.py.

Documentation:

Updated README with usage instructions for geospatial masking.

Checklist before assigning a reviewer (update as needed)

  • Self-review code
  • Ensure submission passes current tests
  • Add tests
  • Update relevant docs
  • Update changelog

Reviewer checklist

Please add anything you want reviewers to specifically focus/comment on.

  • Everything looks ok?

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.

1 participant