Skip to content

Commit

Permalink
removes todo
Browse files Browse the repository at this point in the history
  • Loading branch information
BielStela committed Apr 11, 2023
1 parent e2cdaff commit 7e3658e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion data/h3_data_importer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,6 @@ convert-hdi-contextual: download-hdi-contextual
python csv_to_h3_table.py $(WORKDIR_HDI)/IHDI_HDR2020_040722.csv h3_grid_hdi_global hdi_2019 2019 iso3

convert-blue-water-contextual:
# TODO: check default_params are the same that are currently hardcoded in the db
python cog_to_contextual_layer_linker.py --cog bluewater.tif --name bluewater_footprint --category "Environmental datasets" --tiler_param colormap_name=viridis --tp rescale=-18,832
clean:
rm -rf data/*
5 changes: 3 additions & 2 deletions data/h3_data_importer/cog_to_contextual_layer_linker.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,12 @@ def main(cog: str, name: str, category: str, tiler_param: list):
if cog.startswith("https://"):
# External tiler url. We don't need to check if the file exists in S3, nor we need query_params for the tiler
tiler_url = cog
entry_id = insert_in_contextuals_table(name, category, json.dumps(get_metadata(name)), tiler_url, json.dumps(query_params))
entry_id = insert_in_contextuals_table(
name, category, json.dumps(get_metadata(name)), tiler_url, json.dumps(query_params)
)
log.info(f"External tiler {cog} linked to contextual_layer table with id={entry_id}")
else:
tiler_url = "/tiler/cog/tiles/{z}/{x}/{y}"
# TODO: This always fails :( Alex help here 🙏. but it is really needed?
check_file_exists_in_s3(cog)
query_params["url"] = cog
entry_id = insert_in_contextuals_table(
Expand Down

0 comments on commit 7e3658e

Please sign in to comment.