Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate data map #808

Open
stufraser1 opened this issue Oct 5, 2017 · 7 comments
Open

Automate data map #808

stufraser1 opened this issue Oct 5, 2017 · 7 comments
Assignees

Comments

@stufraser1
Copy link
Member

Automate process to update data map via geojson, on data harvest

@stufraser1 stufraser1 self-assigned this Oct 5, 2017
@stufraser1 stufraser1 assigned ErikKBethke and unassigned stufraser1 Dec 15, 2017
@ErikKBethke
Copy link

See GFDRR/geonode#31

@stufraser1
Copy link
Member Author

@fjacon What would be the level of effort, to build in a process to generate a GEOJSON file in the data harvesting process, that could be used to populate the TH data coverage map? This is currently done manually via GIS software (manually produce shapefile, convert to GEOJSON and host on github for implementation).

@fjacon fjacon assigned tonio and arnaud-morvan and unassigned tonio Jan 24, 2018
@arnaud-morvan
Copy link
Contributor

As I understand, we should add in the web app a geojson rendered view of the coverages based on the decision tree results.

Note that it seems there is no real need for a real file. The geojson could be rendered at runtime, this would simplify the publication process. In that way we would be capable of displaying differents coverage maps for the admin and public databases. Note that the public data could be cached based on the publication date (like other pages as I remember).

The only thing I do not know precisely is how you differentiate the regional and national datasets (we only have a global / local differentiation in processing part for the moment).

@stufraser1
Copy link
Member Author

OK, that sounds fine. There is no particular need for a GEOJSON file for export of this data coverage map.
In the present map, we manually assigned datasets labelled as 'local' but known to have an extent larger than one country as regional. There is no obvious and clean way to auto-identify these at the moment: Perhaps we can include a label in the metadata to identify regional datasets (e.g. as part of a string in supplemental information?), or perhaps cleaner - can you write into the code something that can read whether the Geonode region list is not global and not only a single country? - I.e. the region list would be populated with > 1 country name AND/OR > 0 region names (this list is hierarchical in Geonode)

@arnaud-morvan
Copy link
Contributor

As I understand, we should add, in the web app, a geojson rendered view of the coverages based on the decision tree results.

Note that it seems there is no real need for a real file. The geojson could be rendered at runtime, this would simplify the publication process. In that way we would be capable of displaying differents coverage maps for the admin and public databases. Note that the public data could be cached based on the publication date (like other pages as I remember).

The only thing I do not know precisely is how you differentiate the regional and national datasets (we only have a global / local differentiation in processing part for the moment).

@fjacon
Copy link
Collaborator

fjacon commented Mar 26, 2018

Reminder:
It would take about 4 days (~30h) to deal with:

  • Create SQL request and geojson view of coverage map data.
  • Optimize perfomances, we may use some cache and/or PostgreSQL materialized view, refreshed after decision tree and/or publication.
  • Use the new view in Coverage map dialog (we may use one request per hazardtype to reduce loading time and memory usage on first show).
  • Deploy on production

@stufraser1
Copy link
Member Author

Please also highlight in red/italic text in the pop-up of data layers for each country, which layer is rated most high quality and will be shown in the TH UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants