To import data, you have to run these commands from the server where Georiviere-admin is hosted.
Put your data file named CoursEau_FXX.shp in var/
folder, and run command
Custom your import file named import_bdtopage.py et put this file in georiviere/
And run command : docker compose run --rm web ./import_bdtopage.py
Put your altimetry file in var/
folder, and run command
where <dem_path>
is /opt/georiviere-admin/var/my_dem_file.tiff
Stations can be imported from french Hub'Eau APIs :
- Temperature stations with
import_temperature_stations
- Hydrometry with
import_hydrometric_stations
- Physico-chemical quality with
import_pcquality_stations
Optional arguments:
--department DEPARTMENT [DEPARTMENT ...]
Department code
-p, --with-parameters
Get also parameter tracked by the station
--size SIZE Results per page
Example:
Some data references can be imported from Sandre, for now only units are imported.
Usage:
Put your files into var/
folder as for altimetry profile import.
Load Cities from a file within the spatial extent : loadcities <file_path>
Optional arguments::
--code-attribute CODE, -c CODE
Name of the code's attribute inside the file
--name-attribute NAME, -n NAME
Name of the name's attribute inside the file
--encoding ENCODING, -e ENCODING
File encoding, default utf-8
--srid SRID, -s SRID File's SRID
--intersect, -i Check features intersect spatial extent and not only within
Example:
Load Districts from a file within the spatial extent loaddistricts <file_path>
Optional arguments::
-h, --help show this help message and exit
--name-attribute NAME, -n NAME
Name of the name's attribute inside the file
--encoding ENCODING, -e ENCODING
File encoding, default utf-8
--srid SRID, -s SRID File's SRID
--intersect, -i Check features intersect spatial extent and not only within
Example:
Load Restricted Area from a file within the spatial extent loadrestrictedareas <file_path>
and specify the name of the Area type
Optional arguments::
-h, --help show this help message and exit
--name-attribute NAME, -n NAME
Name of the name's attribute inside the file
--encoding ENCODING, -e ENCODING
File encoding, default utf-8
--srid SRID, -s SRID File's SRID
--intersect, -i Check features intersect spatial extent and not only within
Example:
To import, use QGIS and edit watershed_watershed layer and specify "name" and "watershed_type_id" in attributes