Skip to content

Commit

Permalink
Merge pull request #1760 from girder/gdal-vsi-defaults
Browse files Browse the repository at this point in the history
Specify empty_dir=yes when constructing vsicurl parameters
  • Loading branch information
manthey authored Jan 7, 2025
2 parents 4bd27a2 + 45f6d2c commit 6059360
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
- Suppress a warning about nd2 files that we can't do anything about ([#1749](../../pull/1749))
- Zero empty areas in tile frames ([#1752](../../pull/1752))
- Don't include cache libraries in [common] deployments ([#1758](../../pull/1758))
- Specify empty_dir=yes when constructing vsicurl parameters ([#1760](../../pull/1760))

### Bug Fixes

Expand Down
3 changes: 2 additions & 1 deletion large_image/tilesource/geo.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ def make_vsi(url: Union[str, pathlib.Path, Dict[Any, Any]], **options) -> str:
gdal_options = {
'url': str(url),
'use_head': 'no',
'list_dir': 'no',
'list_dir': 'no', # don't search for adjacent files
'empty_dir': 'yes', # don't probe for sidecar files
}
gdal_options.update(options)
vsi = f'/vsicurl?{urlencode(gdal_options)}'
Expand Down

0 comments on commit 6059360

Please sign in to comment.