Skip to content

Commit

Permalink
Fix asset url
Browse files Browse the repository at this point in the history
  • Loading branch information
mzaglia committed May 15, 2020
1 parent bcd6284 commit d357110
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bdc_stac/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,10 +328,10 @@ def make_geojson(items, links):
assets = get_assets(i.item)
feature['assets'] = dict()
asset_path = os.getenv('FILE_ROOT')
feature['assets']['thumbnail'] = asset_path + i.quicklook
feature['assets']['thumbnail'] = {'href': asset_path + i.quicklook}

for a in assets:
feature['assets'][a.band] = asset_path + a.url
feature['assets'][a.band] = {'href': asset_path + a.url}

properties = dict()
start = datetime.fromisoformat(str(i.start)).strftime("%Y-%m-%d")
Expand Down

0 comments on commit d357110

Please sign in to comment.