Repository navigation
Polygons to Raster on a thread of its own, and raster commands from the app's dispatch too #2739
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
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
ee97ac6
Rasterize makes its raster on a thread of its own, and the app runs e…
pick2510 ff2635a
Review: rasterize's GeoTIFF put in place as the layer is added, class…
pick2510 e51438c
Review: a job cancelled after its work is done is dropped when it lan…
pick2510 93ce94c
Review: every pass of rasterize's work looks at Cancel; the late-canc…
pick2510 432f294
Review: a GeoTIFF that can't be put in place fails with the run's not…
pick2510 cb29376
Review: the dispatch test's doc names Command Search only; an extent …
pick2510 0c2e735
Review: an extent layer's vertices that can't be placed are said
pick2510 4b00398
Review: an extent layer read in place is refused
pick2510 6a7cf26
Review: Project Raster's windowed extent refusal tested and described
pick2510 c120350
Review: the work lets go of the layer's rows once its polygons are co…
pick2510 9b2ab65
Rebase on main: the command surface lists rasterize's ran; written no…
pick2510 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
write_stagedfollows a symbolic link and keeps the file's mode (stage_streamed→stage_at). The synchronous path for the same command still goes throughwrite_file(viawrite_geotiff_with_guidance), which renames a new file over the link and gives it a default mode. Soraster.rasterizewith apathnow writes different results depending on whether it ran on the app's thread or from the CLI, Assistant or Python:The PR says
write_fileis unchanged for its other callers, which is true, but the two paths for one command now disagree. Either route the sync COG write through the same staging and add a symlink test for both paths, or say in the doc comment why they differ.Confidence: medium-high from reading both functions; I did not run this against a real filesystem.
Category: quality
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both paths are the same here.
raster.rasterizerunsrasterize_work's closure in both: on the app's thread, and synchronously throughmade_or_ran(CLI, Python, the Assistant, the Script pane). That closure always writes throughwrite_cog_staged, andadd_madecommits it in both cases. So every caller of the command gets the staged write, which follows a symbolic link and keeps the file's mode.write_fileis still used by the other commands (Export Raster, Project Raster'spathviaadd_output), unchanged.