Skip to content

Commit

Permalink
fix(cogify): support blocksize being customized
Browse files Browse the repository at this point in the history
  • Loading branch information
blacha committed Jul 12, 2023
1 parent c7e3605 commit 44fdb1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cogify/src/cogify/gdal.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export function gdalBuildCog(id: string, sourceVrt: string, opt: CogifyCreationO
['--config', 'GDAL_NUM_THREADS', 'all_cpus'], // Also required to NUM_THREADS till gdal 3.7.x
['-co', 'BIGTIFF=IF_NEEDED'], // BigTiff is somewhat slower and most (All?) of the COGS should be well below 4GB
['-co', 'ADD_ALPHA=YES'],
['-co', 'BLOCKSIZE=512'],
['-co', `BLOCKSIZE=${cfg.blockSize}`],
['-co', `WARP_RESAMPLING=${cfg.warpResampling}`],
['-co', `OVERVIEW_RESAMPLING=${cfg.overviewResampling}`],
['-co', `COMPRESS=${cfg.compression}`],
Expand Down

0 comments on commit 44fdb1d

Please sign in to comment.