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

[WIP] 1404 Get Raster Pixel Color At Location #12116

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

jbeuckm
Copy link

@jbeuckm jbeuckm commented Jul 26, 2022

Here is a working demo using a brute force method of rendering the raster layer to read one pixel. I'm trying to get someone familiar with the render sequence to help fix this since there are a list of people that need the function. Even a hint would be great!

Roadmap:

  • render offscreen and do not interfere with the visible rendered layers
  • render or otherwise read only the query area (not the entire viewport)
  • get a distribution of raster color values within a given rect
  • get a distribution of raster color values within a given polygon

queryRaster

This function seems like part of what happens to find elevation values. Maybe there is a way to generalize the terrain feature to implement this? One difference is that, for my application, the value can not be interpolated. It must return an exact pixel color from the raster image.

@CLAassistant
Copy link

CLAassistant commented Jul 26, 2022

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ jbeuckm
❌ Joe Beuckman


Joe Beuckman seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@jbeuckm jbeuckm marked this pull request as draft July 26, 2022 14:06
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.

None yet

2 participants