WFP-VAM/prism-app

Remove dependency to S3 files

Open

#443 opened on Apr 8, 2022

View on GitHub
 (0 comments) (0 reactions) (1 assignee)TypeScript (47 forks)auto 404
enhancementfrontendgood first issue

Repository metrics

Stars
 (72 stars)
PR merge metrics
 (PR metrics pending)

Description

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.

Contributor guide