Skip to content

Commit

Permalink
Fix strings
Browse files Browse the repository at this point in the history
  • Loading branch information
banesullivan committed Apr 8, 2022
1 parent fdec6d7 commit 469a5b2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions sources/gdal/large_image_source_gdal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,17 @@


def make_vsi(url: str, **options):
if str(url).startswith("s3://"):
s3_path = url.replace("s3://", "")
vsi = f"/vsis3/{s3_path}"
if str(url).startswith('s3://'):
s3_path = url.replace('s3://', '')
vsi = f'/vsis3/{s3_path}'
else:
gdal_options = {
"url": str(url),
"use_head": "no",
"list_dir": "no",
'url': str(url),
'use_head': 'no',
'list_dir': 'no',
}
gdal_options.update(options)
vsi = f"/vsicurl?{urlencode(gdal_options)}"
vsi = f'/vsicurl?{urlencode(gdal_options)}'
return vsi


Expand Down

0 comments on commit 469a5b2

Please sign in to comment.