Skip to content

Add static data

Gulfaraz Rahman edited this page Feb 6, 2025 · 3 revisions

Table of Contents

  1. Point data
  2. Line data
  3. Admin area data
  4. Raster data
  5. Update configuration

Point data

  • Static point data can be updated via an API-call
  • Swagger endpoint
  • See possible values for pointDataCategory here
  • See examples of CSV's here -lat/lon are the required geo columns
  • Notes
    • This API-call will first remove all existing entries for the same countryCodeISO3 and pointDataCategory
    • Static points might be related to pipelines, in case the pipeline uploads e.g. an exposure status of the point (MWI flash-floods) or forecast data about Glofas stations (floods). Make sure that in this case the identifiers of the updated data in IBF-Portal match with the data used in the pipelines.
    • When uploading new data, all existing data for the given countryCodeISO3 and pointDataCategory will be set to active:false but will stay in the database. This way also the dynamic data associated with these assets can stay in the database.
    • On GloFAS stations: DO NOT inadvertently update existing Glofas station coordinates from the original source, because a manual correction to these coordinates has been made.

Line data

  • The current only examples of this are roads and buildings in Malawi Flash-floods
  • Swagger endpoint > Also used for polygon data, even though it's called 'lines-data'
  • Possible values for linesDataCategory are roads and buildings
  • See examples of CSV's here
    • wkt is required geo column
  • same Notes as above for Point data

Admin area data

  • Update static admin-area data, such as e.g. population per admin-area.
  • Swagger endpoint

Raster data

  • Update static raster data, such as e.g. population raster
  • This is not possible via API at the moment

Update configuration (admin only)

In addition to static data, configuration data can also be updated via API. This involves:

In addition, there are some settings, which can currently not be updated via API yet.

  • disaster settings
  • lead times
  • areas of focus