Skip to content

Commit

Permalink
Update import_data.rst
Browse files Browse the repository at this point in the history
ajout pour import des zones sensibles depuis Biodiv'Sport
  • Loading branch information
Thomas Magnin-Feysot authored Nov 14, 2023
1 parent 2f260f5 commit 7d37735
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/usage/import_data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -178,3 +178,21 @@ Example:
Import watershed
''''''''''''''''
To import, use QGIS and edit watershed_watershed layer and specify "name" and "watershed_type_id" in attributes

Import sensibility areas from https://biodiv-sports.fr
'''''''''''''''''''''''''''''''''''''''''''''''''''''
Configure parser.py in /georiviere/var/conf like

.. code-block :: bash
from geotrek.sensitivity.parsers import BiodivParser
class PNRHJBiodivParser(BiodivParser):
url = 'https://biodiv-sports.fr/api/v2/sensitivearea/?format=json&bubble&period=ignore&practice=5'
label = "Biodiv'Sports PNRHJ"
Mors informations : https://geotrek.ecrins-parcnational.fr/ressources/gt/01-zones-sensibilite/doc-import.pdf

.. code-block :: bash
docker-compose run --rm web ./manage.py import_parser -v 2 BiodivParser

0 comments on commit 7d37735

Please sign in to comment.