Commit acf4037
authored
feat: add Tanager STAC search dialog to QGIS plugin (#267)
* feat: add Tanager STAC search dialog to QGIS plugin
Adds a dockable Tanager search panel that lets users query Planet
Tanager STAC scenes, add footprint layers, open orthorectified visual
imagery, and download radiance HDF5 files directly from QGIS.
* feat: enhance Tanager search dialog and functionality with new asset handling and UI improvements
* feat: implement value range handling for Tanager data type in Load Data Dialog
* Address Copilot review feedback
- Add .hdf5 to DATA_TYPES["Tanager"]["extensions"] so the file browser
filter exposes .hdf5 Tanager files, matching the new content-based
detection in _detect_type().
- Track the last default applied to the value-range spinboxes in
LoadDataDialog and add a preserve_user_edits flag to
_apply_data_type_value_range. Preview and load completion now skip
the default re-apply when the user has edited Min/Max since the last
default, preventing custom visualization ranges from being clobbered
before the layer is rendered.
* feat: enhance Tanager data handling with 2D geolocation extraction and default plot settings
* Fix PyQt6 import smoke test failure when matplotlib is unavailable
- Guard _apply_data_type_plot_defaults with a HAS_MATPLOTLIB check so
add_spectrum() does not AttributeError on ylabel_combo when the
dialog ran the matplotlib-less setup_ui() fallback (matches the
pattern used by update_plot and similar methods).
- Skip test_spectral_plot_uses_tanager_radiance_defaults via
pytest.importorskip("matplotlib") so the assertions only run in
environments where the dialog widgets actually exist. The PyQt6
import smoke CI job installs PyQt6 + numpy + Pillow only, not
matplotlib, so the previous test crashed there.
* feat: update Tanager search dialog to handle footprints without GeoDataFrame and improve selection functionality1 parent fa67204 commit acf4037
12 files changed
Lines changed: 2516 additions & 15 deletions
File tree
- qgis_plugin
- hypercoast_qgis
- dialogs
- icons
- qt6_tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
84 | 94 | | |
85 | 95 | | |
86 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
| |||
161 | 164 | | |
162 | 165 | | |
163 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
164 | 171 | | |
165 | 172 | | |
166 | 173 | | |
| |||
253 | 260 | | |
254 | 261 | | |
255 | 262 | | |
256 | | - | |
| 263 | + | |
257 | 264 | | |
258 | 265 | | |
259 | 266 | | |
| |||
358 | 365 | | |
359 | 366 | | |
360 | 367 | | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
361 | 371 | | |
362 | 372 | | |
363 | 373 | | |
364 | 374 | | |
365 | 375 | | |
366 | 376 | | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
367 | 423 | | |
368 | 424 | | |
369 | 425 | | |
| |||
400 | 456 | | |
401 | 457 | | |
402 | 458 | | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
403 | 462 | | |
404 | 463 | | |
405 | 464 | | |
| |||
620 | 679 | | |
621 | 680 | | |
622 | 681 | | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
623 | 685 | | |
624 | 686 | | |
625 | 687 | | |
| |||
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
169 | 174 | | |
170 | 175 | | |
171 | 176 | | |
| |||
Lines changed: 52 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
| |||
134 | 137 | | |
135 | 138 | | |
136 | 139 | | |
| 140 | + | |
137 | 141 | | |
138 | 142 | | |
139 | 143 | | |
| |||
188 | 192 | | |
189 | 193 | | |
190 | 194 | | |
191 | | - | |
192 | | - | |
| 195 | + | |
| 196 | + | |
193 | 197 | | |
194 | 198 | | |
195 | 199 | | |
196 | 200 | | |
197 | | - | |
198 | | - | |
| 201 | + | |
| 202 | + | |
199 | 203 | | |
200 | 204 | | |
201 | 205 | | |
| |||
324 | 328 | | |
325 | 329 | | |
326 | 330 | | |
| 331 | + | |
327 | 332 | | |
328 | 333 | | |
329 | 334 | | |
| |||
335 | 340 | | |
336 | 341 | | |
337 | 342 | | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
338 | 382 | | |
339 | 383 | | |
340 | 384 | | |
| |||
351 | 395 | | |
352 | 396 | | |
353 | 397 | | |
354 | | - | |
| 398 | + | |
355 | 399 | | |
356 | 400 | | |
357 | 401 | | |
358 | 402 | | |
359 | 403 | | |
360 | 404 | | |
361 | 405 | | |
| 406 | + | |
362 | 407 | | |
| 408 | + | |
363 | 409 | | |
364 | 410 | | |
365 | 411 | | |
366 | 412 | | |
367 | 413 | | |
368 | 414 | | |
369 | 415 | | |
| 416 | + | |
370 | 417 | | |
371 | 418 | | |
372 | 419 | | |
| |||
0 commit comments