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 Method to Convert QgsRasterLayer to NumPy Array #58247

Merged
merged 2 commits into from
Aug 20, 2024

Conversation

merydian
Copy link
Contributor

Description

This pull request, as part of qgis/QGIS-Enhancement-Proposals#227, introduces a new method to PyQGIS that enables conversion of QgsRasterLayer into a NumPy array. This addition allows users to efficiently handle and analyze raster data using NumPy. This enhancement improves integration with NumPy while keeping it an optional dependency.

@github-actions github-actions bot added this to the 3.40.0 milestone Jul 25, 2024
@merydian merydian changed the title Add Method to Convert QgsRasterBlock to NumPy Array Add Method to Convert QgsRasterLayer to NumPy Array Jul 25, 2024
Copy link

github-actions bot commented Jul 25, 2024

🪟 Windows builds ready!

Windows builds of this PR are available for testing here. Debug symbols for this build are available here.

(Built from commit 67d409e)

Copy link

github-actions bot commented Aug 9, 2024

The QGIS project highly values your contribution and would love to see this work merged! Unfortunately this PR has not had any activity in the last 14 days and is being automatically marked as "stale". If you think this pull request should be merged, please check

  • that all unit tests are passing

  • that all comments by reviewers have been addressed

  • that there is enough information for reviewers, in particular

    • link to any issues which this pull request fixes

    • add a description of workflows which this pull request fixes

    • add screenshots if applicable

  • that you have written unit tests where possible
    In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this pull request.
    If there is no further activity on this pull request, it will be closed in a week.

@github-actions github-actions bot added the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Aug 9, 2024
@nyalldawson
Copy link
Collaborator

@merydian can you update this branch based on the raster block work?

@github-actions github-actions bot removed the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Aug 14, 2024
@nyalldawson
Copy link
Collaborator

@merydian can you rebase against master? There's a merge conflict here now

python/PyQt6/core/__init__.py.in Outdated Show resolved Hide resolved
python/PyQt6/core/__init__.py.in Show resolved Hide resolved
@nyalldawson
Copy link
Collaborator

Perfect, thank you!

@nyalldawson nyalldawson added the Changelog Items that are queued to appear in the visual changelog - remove after harvesting label Aug 20, 2024
@qgis-bot
Copy link
Collaborator

@merydian

This pull request has been tagged for the changelog.

  • The description will be harvested so please provide a "nearly-ready" text for the final changelog
  • If possible, add a nice illustration of the feature. Only the first one in the description will be harvested (GIF accepted as well)
  • If you can, it's better to give credits to your sponsor, see below for different formats.

You can edit the description.

Format available for credits
  • Funded by NAME
  • Funded by URL
  • Funded by NAME URL
  • Sponsored by NAME
  • Sponsored by URL
  • Sponsored by NAME URL

Thank you!

@nyalldawson nyalldawson merged commit 1b892d6 into qgis:master Aug 20, 2024
32 checks passed
@zacharlie zacharlie added ChangelogHarvested This PR description has been harvested in the Changelog already. and removed Changelog Items that are queued to appear in the visual changelog - remove after harvesting labels Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ChangelogHarvested This PR description has been harvested in the Changelog already.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants