Skip to content

Commit 9b859c8

Browse files
authored
fix(cogify): support blocksize being customized (#2842)
1 parent c7e3605 commit 9b859c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cogify/src/cogify/gdal.command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export function gdalBuildCog(id: string, sourceVrt: string, opt: CogifyCreationO
6363
['--config', 'GDAL_NUM_THREADS', 'all_cpus'], // Also required to NUM_THREADS till gdal 3.7.x
6464
['-co', 'BIGTIFF=IF_NEEDED'], // BigTiff is somewhat slower and most (All?) of the COGS should be well below 4GB
6565
['-co', 'ADD_ALPHA=YES'],
66-
['-co', 'BLOCKSIZE=512'],
66+
['-co', `BLOCKSIZE=${cfg.blockSize}`],
6767
['-co', `WARP_RESAMPLING=${cfg.warpResampling}`],
6868
['-co', `OVERVIEW_RESAMPLING=${cfg.overviewResampling}`],
6969
['-co', `COMPRESS=${cfg.compression}`],

0 commit comments

Comments
 (0)