Skip to content

Commit

Permalink
Remove extra geotiff from geojsons prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
dmannarino committed Dec 10, 2024
1 parent b6ffcf4 commit 0f920e3
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions batch/python/apply_colormap.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,20 +287,18 @@ def apply_symbology(
with open(extent_output_file, "w") as f:
print(extent_txt, file=f)

geojsons_prefix = os.path.join(target_prefix, "geotiff")

logger.log(logging.INFO, f"Uploading geojsons to {geojsons_prefix}")
logger.log(logging.INFO, f"Uploading geojsons to {target_prefix}")
upload_s3(
tiles_output_file,
bucket,
os.path.join(geojsons_prefix, tiles_output_file),
os.path.join(target_prefix, tiles_output_file),
)
upload_s3(
extent_output_file,
bucket,
os.path.join(geojsons_prefix, extent_output_file),
os.path.join(target_prefix, extent_output_file),
)
logger.log(logging.INFO, f"Finished uploading geojsons to {geojsons_prefix}")
logger.log(logging.INFO, f"Finished uploading geojsons to {target_prefix}")

log_queue.put_nowait(None)
listener.join()
Expand Down

0 comments on commit 0f920e3

Please sign in to comment.