WFP-VAM/prism-app

Remove dependency to S3 files

Open

#443 aperta il 8 apr 2022

Vedi su GitHub
 (0 commenti) (0 reazioni) (1 assegnatario)TypeScript (47 fork)auto 404
enhancementfrontendgood first issue

Metriche repository

Star
 (72 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Currently, running raster analysis locally requires to have a boundary file on S3. We should remove this dependency. To do so, we have two options.

  1. When running locally, we send the geojson boundaries instead of url

  2. Instead of using S3, we add a “defaultUrl” to each country, pointing to their main deployment URL. This way, we don’t need to maintain files on S3 and the URL will be something like prism-mongolia.org/data/boundary_file.json

Since the API already accepts zones as a GeoJSON, it is probably the easiest option.

Guida contributor