Add region input to crop imagery for Ask Qwen task - #457
Open
annehaley wants to merge 12 commits into
Open
Conversation
annehaley
force-pushed
the
task-region-input
branch
from
August 18, 2026 20:49
f0087da to
5618eed
Compare
Deploying geodatalytics with
|
| Latest commit: |
8198f01
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://7e68f29c.geodatalytics.pages.dev |
| Branch Preview URL: | https://task-region-input.geodatalytics.pages.dev |
annehaley
force-pushed
the
task-region-input
branch
from
August 18, 2026 21:04
2202af1 to
70c6f53
Compare
… addresses a bug when applying a saved view
annehaley
force-pushed
the
task-region-input
branch
from
August 19, 2026 14:46
8ad7b85 to
bc60ee6
Compare
annehaley
force-pushed
the
task-region-input
branch
from
August 19, 2026 15:08
c305996 to
8198f01
Compare
Contributor
|
The functionality works well (though I've failed at getting qwen to give good answers to the questions I've asked). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR allows a user to specify a region as input to the Ask Qwen task. They may select a region related to a dataset in the current project or create a new region related to the project directly. The selected region input will be used to crop and mask the input imagery before encoding and sending to the qwen endpoint.
project_filter_pathis set to "project|dataset__project" andquerysets.filter_by_projectswas updated to allow for multiple paths for a project relationship.ModelViewSetwith an override onperform_createto account for deserializing the coordinates.vector_feature, like the ones created during a dataset ingest do. We could create them inperform_createif we think we will use them for something in the future, but for now they're unnecessary. We only use a region's vector feature to serve vector tiles for a layer. Without a relationship to a layer, these regions don't need vector features. Instead, these regions are visualized with a specialized MapLibre layer in the client.imagery_ask_qwen.pyto use a region input to crop and mask the image before sending to qwen.terradrawto client dependencies for drawing a region on the map.AnalyticsPanel.vueto support regions as inputs and outputs. When regions are shown in a combobox dropdown, the user may hover over each item to see the region on the map. A specialized geojson MapLibre layer is used to visualize the regions. The same process is used to visualize them when the user clicks the "Show" button next to a region input or output in the "View Existing" tab.This video demonstrates the new client features. (I clipped out the time spent waiting on qwen's response.)
https://drive.google.com/file/d/1PFMii5qj_HueyjHbV70xGHOc_yzGlrC7/view?usp=sharing
Edit: this PR also includes a fix to ignore the "Type instantiation is excessively deep and possibly infinite" errors arising from using MapLibre nested types. This CI failure makes this change necessary.