Skip to content
Snippets Groups Projects
Commit 11a7bfd8 authored by ncastejon's avatar ncastejon
Browse files

Complete the downloads documentation.

parent f8597a14
No related branches found
No related tags found
No related merge requests found
Pipeline #4482 failed
docs/assets/webapp/downloads.png

52.3 KiB | W: | H:

docs/assets/webapp/downloads.png

44.7 KiB | W: | H:

docs/assets/webapp/downloads.png
docs/assets/webapp/downloads.png
docs/assets/webapp/downloads.png
docs/assets/webapp/downloads.png
  • 2-up
  • Swipe
  • Onion skin
# Downloads # Downloads
## From API ## From the API
In the first section, the files are created by using the API. In the first section, the files are created by using the API (see [here](./api.md))
![Downloads query](../../../../assets/webapp/downloads.png) ![Downloads query](../../../../assets/webapp/downloads.png)
For example a PNG file is created by querying the WMS service with specific paramameters. Then the response is converted into a `blob` to allow the browser launch the download. Depending on the format and the dataset, it is possible to modify the localization (municipality) and the projection system.
For each format, it may have 0, 1 or 2 parameters to download the file:
* datasets with an `insee` code have the option to choose the municipality
* for files retrived from services allowing multiple projection system as output (for example `WMS` or `WFS`), it's possible to choose the projection system
* for a file format with no projection system (for example JSON of the non-standard `WS` service), and a dataset with no `insee` code, no option are provided
Once the user clicked on the `Download button`, a file is created by querying the WMS service with specific paramameters. Then the response is converted into a `blob` to allow the browser launch the download.
## Static and other resources ## Static and other resources
![Downloads other](../../../../assets/webapp/downloads-2.png) ![Downloads other](../../../../assets/webapp/downloads-2.png)
Any other resources like static files (eg a `.csv` or `.tiff`) or an url are listed in two other sections as seen in the figure above. Any other resources like static files (eg a `.csv` or `.tiff`) or an url are listed in two other sections as seen in the figure above.
\ No newline at end of file These files are raw resources (document or link), and cannot be configured as the resources using the API.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment