mirror of
https://github.com/rasterio/rasterio.git
synced 2025-12-08 17:36:12 +00:00
DOC: Create destfile with proper dictionary (#2583)
The dictionary was updated but the src dictionary was being used. Because of that the iteration wasn't using the blocks
This commit is contained in:
parent
f113302baf
commit
32e3cde8ae
@ -31,7 +31,7 @@ def main(infile, outfile, num_workers=4):
|
||||
profile = src.profile
|
||||
profile.update(blockxsize=128, blockysize=128, tiled=True)
|
||||
|
||||
with rasterio.open(outfile, "w", **src.profile) as dst:
|
||||
with rasterio.open(outfile, "w", **profile) as dst:
|
||||
windows = [window for ij, window in dst.block_windows()]
|
||||
|
||||
# We cannot write to the same file from multiple threads
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user