Skip to content

Commit 4388f4b

Browse files
committed
feat(parquet): SORT_BY_BBOX=YES
1 parent 4817c3b commit 4388f4b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

bin/cmd/feature/ogr.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ module.exports = {
3535
default: 'ghcr.io/osgeo/gdal:alpine-normal-latest',
3636
describe: 'docker image to use'
3737
})
38+
yargs.option('args', {
39+
type: 'string',
40+
default: '',
41+
describe: 'additional args to pass to ogr2ogr'
42+
})
3843
},
3944
handler: (argv) => {
4045
const tap = new Stream.PassThrough()
@@ -55,6 +60,11 @@ function formatSpecificArgs (format) {
5560
'-lco', 'RESIZE=YES'
5661
]
5762
}
63+
if (format.includes('parquet')) {
64+
return [
65+
'-lco', 'SORT_BY_BBOX=YES'
66+
]
67+
}
5868
return []
5969
}
6070

0 commit comments

Comments
 (0)