Skip to content

Commit

Permalink
fix(cli): fix regression quadkey.vrt missing '-allow_projection_diffe…
Browse files Browse the repository at this point in the history
…rence' (#770)
  • Loading branch information
Geoff Jacobsen committed Jun 12, 2020
1 parent 4fc4941 commit 2345ed4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/cli/src/cog/__test__/quadkey.vrt.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ o.spec('quadkey.vrt', () => {

o((runSpy.calls[0] as any).args).deepEquals([
'gdalbuildvrt',
['-hidenodata', '-addalpha', '/tmp/my-tmp-folder/source.vrt', vtif1, vtif2],
['-hidenodata', '-allow_projection_difference', '-addalpha', '/tmp/my-tmp-folder/source.vrt', vtif1, vtif2],
logger,
]);

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/cog/quadkey.vrt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { GdalCommand } from '../gdal/gdal.command';
* Build the VRT for the needed source imagery
*/
async function buildPlainVrt(job: CogJob, vrtPath: string, gdalCommand: GdalCommand, logger: LogType): Promise<void> {
const buildOpts = ['-hidenodata'];
const buildOpts = ['-hidenodata', '-allow_projection_difference'];
if (job.output.vrt.addAlpha) {
buildOpts.push('-addalpha');
}
Expand Down

0 comments on commit 2345ed4

Please sign in to comment.