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

Use pgRouting A star #4263

Merged
merged 538 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
538 commits
Select commit Hold shift + click to select a range
8f14918
Optimize dijkstra matrix generation
justinefricou Jun 12, 2024
f3cdb1c
Remove calls to now deleted js scripts
justinefricou Jun 12, 2024
cbbb2ac
Remove no longer used methods
justinefricou Jun 12, 2024
122657a
Add benchmarking system based on frontend routing version
justinefricou Jul 1, 2024
dd9b641
Fix typo in cypress.config.js
justinefricou Jul 1, 2024
8b48e5d
Startng to work on adapting frontend benchmark system for backend
justinefricou Jul 1, 2024
ecd7939
Add record of the number of runs for a benchmark measure
justinefricou Jul 2, 2024
401ae36
Modify route control clicking via cypress
justinefricou Jul 2, 2024
7107094
Replace broken 3 via-pts topology with a 2 via-pts topology
justinefricou Jul 2, 2024
1ddd78d
Modify cypress benchmark: adapt the frontend version to work with bac…
justinefricou Jul 2, 2024
c4be513
Modify python time measures: now in milliseconds instead of seconds
justinefricou Jul 2, 2024
bac1b99
Modify time measurement: startTime is now recorded before the click/d…
justinefricou Jul 2, 2024
0b240da
Modify benchmark.sh: making the session id a variable
justinefricou Jul 2, 2024
2afcadf
Add scenario using the big DB and no via point
justinefricou Jul 2, 2024
f28d309
Add display of current branch name for each measure
justinefricou Jul 3, 2024
67eecb8
Replace big database no via pts scenario with 25 via pts scenario
justinefricou Jul 4, 2024
34d778c
Add readme for the benchmarking system
justinefricou Jul 4, 2024
52047e7
Modify benchmarking script: cypress spec file and session id are now …
justinefricou Jul 4, 2024
2423f7c
Fix crash when computing time averages if a file is missing
justinefricou Jul 4, 2024
4b2c4ab
Add 2 via-pts topology for big database
justinefricou Jul 5, 2024
542c24c
Replace 25-via-pts scenario with 2-via-pts scenario for big database
justinefricou Jul 5, 2024
579025d
Add unit tests for route_geometry view (check of request body)
justinefricou Jul 5, 2024
7a80fd2
Modify cypress timeouts: now 30min
justinefricou Jul 5, 2024
74abdff
Start to work on impossible and possible path test cases
justinefricou Jul 5, 2024
c6b47a4
Add check of lat and lng type and range in route_geometry view
justinefricou Jul 5, 2024
88847bc
Fix request body not sent in the right format (route_geometry tests)
justinefricou Jul 5, 2024
79a3455
Add new scenario for big DB with no via point
justinefricou Jul 8, 2024
fbab465
Add test case: steps not on paths
justinefricou Jul 8, 2024
c536f1f
Add test case: steps one paths not linked
justinefricou Jul 8, 2024
3b14baf
Add tests for route_geometry view
justinefricou Jul 8, 2024
8838764
Fix test for the route_geometry view
justinefricou Jul 8, 2024
1cb930c
Remove prints
justinefricou Jul 8, 2024
c4863e5
Move benchmarking directory into tools/
justinefricou Jul 8, 2024
17cb8d7
Fix norm
justinefricou Jul 8, 2024
1740610
Modify Cypress 'create trek' test after routing changes
justinefricou Jul 8, 2024
9abca3a
Try to fix cypress e2e tests
justinefricou Jul 9, 2024
f2d74a4
Uncomment env_dev settings
justinefricou Jul 9, 2024
bed505e
Modify Cypress e2e tests: actually click on paths to create a trek
justinefricou Jul 9, 2024
8def26c
Remove console.log and debugger
justinefricou Jul 9, 2024
fe5a19d
Fix cypress e2e tests: id of clicked path
justinefricou Jul 9, 2024
448967e
Add test case for route_geometry view: error 500
justinefricou Jul 9, 2024
bf9e6ae
Try to fix cypress tests: ensure the topology control is enabled befo…
justinefricou Jul 9, 2024
6b6cc98
Comment content of test_graph temporarily
justinefricou Jul 9, 2024
e00e654
Adapt graph generation tests to the new routing system
justinefricou Jul 10, 2024
2f26b54
Add tests for path_router
justinefricou Jul 10, 2024
55898e3
Add unit test for cache handling in path_router
justinefricou Jul 10, 2024
86c7725
Fix cache-related test for PathRouter
justinefricou Jul 10, 2024
fa8c44d
Modify test_route_geometry_not_fail_with_via_points_several_paths to …
justinefricou Jul 11, 2024
a15c53f
Modify route_geometry tests: more precision when checking results
justinefricou Jul 11, 2024
3da50d0
Remove old unit test for route_geometry view
justinefricou Jul 11, 2024
74c72f3
Remove redundant unit test for path_router
justinefricou Jul 12, 2024
f836d06
Add script to take backend time measures
justinefricou Jul 12, 2024
7f3fd07
Add steps for route with 100 via-pts for backend time measures script
justinefricou Jul 12, 2024
8cfd90a
Fix topology used in 100-via-pts fixture
justinefricou Jul 15, 2024
553f361
Add big database topology in backend time measuring script
justinefricou Jul 15, 2024
0201aeb
Improve readability of path_router test: using yied
justinefricou Jul 15, 2024
2efd83b
Update benchmark README to include the new script
justinefricou Jul 15, 2024
0530be6
Fix requirements.txt after rebase
justinefricou Jul 23, 2024
3eadf2b
Modify leaflet map: start spinner and disable markers ASAP
justinefricou Jul 30, 2024
de17dee
Modify leaflet map: stop spinner and reenable markers as late as poss…
justinefricou Jul 30, 2024
488ffb2
Adapt backend benchmark script to new PR
justinefricou Aug 5, 2024
ad2d965
Modify display of route layers: only redisplay those affected by a ro…
justinefricou Aug 14, 2024
58924cd
Fix route modif not saved if an incorrect marker has been fixed
justinefricou Aug 27, 2024
7e9c1eb
Fix path layers not displayed at creation
justinefricou Aug 27, 2024
9972711
Merge branch 'move_routing_to_backend' into use_pgRouting
submarcos Sep 4, 2024
6ef6802
Update docs/install/import.rst
submarcos Sep 4, 2024
aa6cb6a
fix rebase
submarcos Sep 4, 2024
72e7eb2
fix rebase
submarcos Sep 4, 2024
eaa86bc
Modify routing alorithm: use pgr A*
justinefricou Aug 9, 2024
05c4b09
Fix route topology extremities taking the whole edge
justinefricou Aug 9, 2024
2cf3124
Fix direction of route topology and geometry
justinefricou Aug 9, 2024
316a3f8
Fix generation of topology (start and end fractions)
justinefricou Aug 12, 2024
c907b18
Fix computation of more than 2 steps not possible: temp tables not dr…
justinefricou Aug 12, 2024
b1721a7
Fix multilistrings sometimes not merging
justinefricou Aug 12, 2024
0c50091
Remove comments and prints
justinefricou Aug 12, 2024
2cdabcc
Improve precision of coordinates rounding
justinefricou Aug 12, 2024
0f81f5d
Use pg routing (#4245)
justinefricou Sep 13, 2024
16dc179
Merge branch 'move_routing_to_backend' into use_pgRouting_A_star
submarcos Sep 13, 2024
476e394
Apply suggestions from code review
submarcos Sep 16, 2024
a3a1a4c
🐛 [BUG] Fix reset layer
Chatewgne Sep 17, 2024
acb8d7a
🏗 [MAINT] Remove unused dependency scipy
Chatewgne Sep 17, 2024
6729f20
🏗 [MAINT] Remove unused dependency scipy
Chatewgne Sep 17, 2024
d39e682
Merge branch 'move_routing_to_backend' into use_pgRouting_A_star
submarcos Sep 20, 2024
b5a2986
Add TrekGeometry view with get and post methods
Apr 10, 2024
ed73977
Add a parameter to TrekGeometry post method
Apr 10, 2024
5a5acb9
Add graph and steps info being sent to TrekGeometry view
Apr 12, 2024
e8f53a8
Add computing of the dijkstra matrix and start and end nodes (only ha…
Apr 12, 2024
f752b9b
Add computing of the path to follow (node to node) (handles whole edg…
Apr 15, 2024
5dc803f
Modify path in response: it's now from start to end
Apr 15, 2024
86f47b7
Refacto: nodes idx to id correspondence
Apr 15, 2024
521047e
Add structure of algorithm handling partial edges and more than 2 steps
Apr 15, 2024
b9b2b5b
ADD handling of edge percentage and more than 2 markers
Apr 16, 2024
e86d4d2
Add display of a hard-coded polyline sent from the TrekGeometry view
Apr 16, 2024
fc98a46
The graph is directly taken from the backend
Apr 16, 2024
3cac2b3
Add handling of GPS coordinates as input
Apr 17, 2024
a4c5360
Add use of Point ewkt when using sql
Apr 17, 2024
3979f77
Add TODOs for next step: obtaining a LineString from dijkstra results
Apr 17, 2024
317476e
Starting to work on converting the resulting nodes list into LineStrings
Apr 17, 2024
08fa614
Add conversion of dijstra results into a displayed Linestring
Apr 18, 2024
5ef948d
Correctng some comments
Apr 23, 2024
efe9bdd
Fix path not computed if adjacent steps are on the same edge
Apr 23, 2024
acc8fc0
Fix negative dijkstra weight when we're going backwards relative to a…
Apr 23, 2024
2a226c3
Fix path not computed when going backwards on a Path if going through…
Apr 23, 2024
24000cb
Starting to display fetched route instead of locally computed route
Apr 25, 2024
ec9ea31
Preparing topology_helper to handle several linestrings
Apr 25, 2024
ada6979
Automating the geojson generation in the view
Apr 25, 2024
2b91bfc
Add handling of several steps
Apr 26, 2024
ddd7135
Replacing MultiLineString by GeometryCollection in Response
Apr 26, 2024
d3d78c6
Fixing the organization of layers in the displayed path
Apr 26, 2024
25166bb
Removing old code related to the graph
Apr 26, 2024
bdcfe10
Removing old code
Apr 26, 2024
ce718e0
Removing old code
Apr 26, 2024
7cb3e88
Making the TrekGeometry post method into a PathViewSet action
Apr 29, 2024
f706c99
Reordering PathRouter methods
Apr 29, 2024
d3f78ba
Removing graph action of PathViewSet
Apr 29, 2024
bad52f4
Moving initial graph generation into the PathRouter class
Apr 29, 2024
86cabbc
Removing no longer used imports
Apr 29, 2024
06d4864
Renaming graph.py to path_router.py
Apr 29, 2024
a00161b
Adding parameters error handling for the route_geometry action
Apr 29, 2024
88ef4f5
Using dict.update instead of a custom method
Apr 29, 2024
e618c4c
Adding status codes to Responses
Apr 30, 2024
05faa43
Optimizing the cs_graph generation (generating the upper triangle the…
May 2, 2024
d09ba68
Optimizing matrix generation: it is now generated at init and modifie…
May 2, 2024
af455b0
Optimizing matrix generation by using its symmetrical property
May 2, 2024
4c0ca68
Refactoring: making duplicate code into a method
May 3, 2024
8558dec
The route is now fetched only when the marker dragging stops
May 3, 2024
12b1cef
Saving the dijkstra matrix in the cache
May 6, 2024
6cd7a0c
Saving the path graph in the cache
May 6, 2024
dafda1f
Moving duplicate cache-related code into a single method
May 6, 2024
23ac81c
Add handling of an impossible path: the view returns a status 204 and…
May 6, 2024
a092ea7
Modify error handling in js: using Promise.reject
May 6, 2024
d18a8fc
Correct returns when no path could be found
May 13, 2024
b53e8fd
Replaces status 204 by status 400 when no path can be found
May 13, 2024
26b706f
Add a spinner when the route is being fetched
May 14, 2024
30a4cbd
Add sending of the modified steps indexes to fetchRoute
May 14, 2024
a97d3bd
Adds fetching of the route for only the modified steps
May 14, 2024
df2ef56
Add algorithm that updates the displayed route layers
May 16, 2024
194b6f1
Add use of currently displayed layers indexes to replace them
May 16, 2024
0d6cf3f
Fix replacing the currently displayed layers indexes by new ones
May 16, 2024
185f57a
Fix updating layers not working after removing a marker
May 16, 2024
1874b0f
Bump leaflet.textpath.js to v1.1.0
May 17, 2024
86912f8
Move leaflet static files into a vendor directory
May 17, 2024
cbbf2c8
Bump leaflet.lineextremities.js to v0.1.1
May 21, 2024
734bc97
Fix missing path layer when an unlinkable via marker is removed
May 21, 2024
bdb02d4
Remove console logs
May 21, 2024
265946d
Add coloring of the markers when one is isolated
May 22, 2024
b55d4a3
Add coloring of all markers to normal appearance when back to normal
May 22, 2024
3ae3a45
Add enabling/disabling of markers drag when a route is correct/incorrect
May 22, 2024
9dbeda5
Add enabling/disabling of markers deletion when a route is correct/in…
May 22, 2024
0fd3ee7
Add impossibility of creating new via-steps while the route is invalid
May 23, 2024
b25f044
Move spinner.stop() into a finally()
May 23, 2024
3fc8297
Fix one route layer missing when an isolated via-step is corrected
May 24, 2024
5b493da
Add deletion of a marker if not dropped on a path
May 24, 2024
e2047f9
Add resetting of a marker to its previous valid position when not dro…
May 24, 2024
f4c1603
Fix isolated marker highlight being removed when reset to its previou…
May 24, 2024
bb3ced7
Remove duplicate part of code
May 24, 2024
3092391
Remove hiding of route layer when the start or end marker is moved
May 24, 2024
d07b0e4
Fix out of date step idx used when deleting a via point
May 24, 2024
482e42c
Add display of an error toast when a marker is incorrect
May 27, 2024
fd34255
Modify error_toast elements class names for genericity
May 30, 2024
17b0adf
Fix toast stacking: top toast not on the bottom when it's the only on…
May 30, 2024
8a07042
Fix wrong marker being deleted after trying to create an unsnapped ma…
May 30, 2024
1a40c93
Fix route layer not displayed after start and end markers created and…
May 30, 2024
34eedec
Add disabling of markers when the route is being fetched
May 30, 2024
ad1645f
Add saving of the route topology through the form
May 30, 2024
2c7d306
Add modification of the route topology through the edit form
Jun 3, 2024
7870417
Fix Geotrek object no longer created before use
justinefricou Jun 10, 2024
bb4b282
Remove use of non-sparse matrix for dijkstra (using csr_array)
justinefricou Jun 10, 2024
7d1cc05
Modify use of sparse array (using lil_array instead of csr_array)
justinefricou Jun 11, 2024
de89999
Optimize dijkstra matrix generation
justinefricou Jun 12, 2024
6b3add8
Remove calls to now deleted js scripts
justinefricou Jun 12, 2024
9bcb117
Remove no longer used methods
justinefricou Jun 12, 2024
984bd10
Add benchmarking system based on frontend routing version
justinefricou Jul 1, 2024
bc949d6
Fix typo in cypress.config.js
justinefricou Jul 1, 2024
9867da1
Startng to work on adapting frontend benchmark system for backend
justinefricou Jul 1, 2024
33b3fa1
Add record of the number of runs for a benchmark measure
justinefricou Jul 2, 2024
88251ea
Modify route control clicking via cypress
justinefricou Jul 2, 2024
8afdb8e
Replace broken 3 via-pts topology with a 2 via-pts topology
justinefricou Jul 2, 2024
c46b5f3
Modify cypress benchmark: adapt the frontend version to work with bac…
justinefricou Jul 2, 2024
b1a399f
Modify python time measures: now in milliseconds instead of seconds
justinefricou Jul 2, 2024
59fa21d
Modify time measurement: startTime is now recorded before the click/d…
justinefricou Jul 2, 2024
389d15e
Modify benchmark.sh: making the session id a variable
justinefricou Jul 2, 2024
d9486db
Add scenario using the big DB and no via point
justinefricou Jul 2, 2024
2b5f4e9
Add display of current branch name for each measure
justinefricou Jul 3, 2024
f44b56b
Replace big database no via pts scenario with 25 via pts scenario
justinefricou Jul 4, 2024
6e53e59
Add readme for the benchmarking system
justinefricou Jul 4, 2024
780ad80
Modify benchmarking script: cypress spec file and session id are now …
justinefricou Jul 4, 2024
9ff0f1b
Fix crash when computing time averages if a file is missing
justinefricou Jul 4, 2024
3ae0f71
Add 2 via-pts topology for big database
justinefricou Jul 5, 2024
f93869f
Replace 25-via-pts scenario with 2-via-pts scenario for big database
justinefricou Jul 5, 2024
d1c4315
Add unit tests for route_geometry view (check of request body)
justinefricou Jul 5, 2024
0235faa
Modify cypress timeouts: now 30min
justinefricou Jul 5, 2024
9dfd738
Start to work on impossible and possible path test cases
justinefricou Jul 5, 2024
d70b2bc
Add check of lat and lng type and range in route_geometry view
justinefricou Jul 5, 2024
9a9f573
Fix request body not sent in the right format (route_geometry tests)
justinefricou Jul 5, 2024
89d09a3
Add new scenario for big DB with no via point
justinefricou Jul 8, 2024
2a17053
Add test case: steps not on paths
justinefricou Jul 8, 2024
158664c
Add test case: steps one paths not linked
justinefricou Jul 8, 2024
3bf01e1
Add tests for route_geometry view
justinefricou Jul 8, 2024
1afc639
Fix test for the route_geometry view
justinefricou Jul 8, 2024
1cb5dfb
Remove prints
justinefricou Jul 8, 2024
e81be77
Move benchmarking directory into tools/
justinefricou Jul 8, 2024
b5014a6
Fix norm
justinefricou Jul 8, 2024
24c5e98
Modify Cypress 'create trek' test after routing changes
justinefricou Jul 8, 2024
a0a45b8
Try to fix cypress e2e tests
justinefricou Jul 9, 2024
42192d6
Uncomment env_dev settings
justinefricou Jul 9, 2024
6d4af7e
Modify Cypress e2e tests: actually click on paths to create a trek
justinefricou Jul 9, 2024
c7f435e
Remove console.log and debugger
justinefricou Jul 9, 2024
43c3481
Fix cypress e2e tests: id of clicked path
justinefricou Jul 9, 2024
96e5d92
Add test case for route_geometry view: error 500
justinefricou Jul 9, 2024
adebbde
Try to fix cypress tests: ensure the topology control is enabled befo…
justinefricou Jul 9, 2024
18436ea
Comment content of test_graph temporarily
justinefricou Jul 9, 2024
09f4e81
Adapt graph generation tests to the new routing system
justinefricou Jul 10, 2024
a7121de
Add tests for path_router
justinefricou Jul 10, 2024
ec4630c
Add unit test for cache handling in path_router
justinefricou Jul 10, 2024
3c1ca38
Fix cache-related test for PathRouter
justinefricou Jul 10, 2024
591a7ec
Modify test_route_geometry_not_fail_with_via_points_several_paths to …
justinefricou Jul 11, 2024
eaa93e1
Modify route_geometry tests: more precision when checking results
justinefricou Jul 11, 2024
b7a85ba
Remove old unit test for route_geometry view
justinefricou Jul 11, 2024
a0924a2
Remove redundant unit test for path_router
justinefricou Jul 12, 2024
483879c
Add script to take backend time measures
justinefricou Jul 12, 2024
31e9f00
Add steps for route with 100 via-pts for backend time measures script
justinefricou Jul 12, 2024
aa3f6f5
Fix topology used in 100-via-pts fixture
justinefricou Jul 15, 2024
2338a7b
Add big database topology in backend time measuring script
justinefricou Jul 15, 2024
28e9ac5
Improve readability of path_router test: using yied
justinefricou Jul 15, 2024
ff6a7bb
Update benchmark README to include the new script
justinefricou Jul 15, 2024
4e9945c
Fix requirements.txt after rebase
justinefricou Jul 23, 2024
623316b
Modify leaflet map: start spinner and disable markers ASAP
justinefricou Jul 30, 2024
3823724
Modify leaflet map: stop spinner and reenable markers as late as poss…
justinefricou Jul 30, 2024
10668ae
Adapt backend benchmark script to new PR
justinefricou Aug 5, 2024
5461fbf
Modify display of route layers: only redisplay those affected by a ro…
justinefricou Aug 14, 2024
ca3fc01
Fix route modif not saved if an incorrect marker has been fixed
justinefricou Aug 27, 2024
6e7462d
Fix path layers not displayed at creation
justinefricou Aug 27, 2024
c813652
Use pg routing (#4245)
justinefricou Sep 13, 2024
1fbc1d8
🐛 [BUG] Fix reset layer
Chatewgne Sep 17, 2024
0516b9a
🏗 [MAINT] Remove unused dependency scipy
Chatewgne Sep 17, 2024
df03423
🏗 [MAINT] Remove unused dependency scipy
Chatewgne Sep 17, 2024
fd35a8c
Fix code norm
justinefricou Nov 25, 2024
5666992
Add pgrouting to check_versions command
justinefricou Nov 28, 2024
c9940d2
Add warnings to changelog
justinefricou Nov 28, 2024
f46462f
Update installation and upgrade docs for pgrouting use
justinefricou Nov 28, 2024
ded70f6
Fix doc: underline too short
justinefricou Nov 28, 2024
9c9ac94
Fix requirements.txt after rebase
justinefricou Nov 28, 2024
c63c1a6
Bump pgrouting to v.3.0.0
justinefricou Dec 2, 2024
b1667a8
Use pgr_full_version for check_versions command
justinefricou Dec 2, 2024
9c8b75f
Refactoring routing unit tests
justinefricou Dec 6, 2024
e79a17b
Merge move_routing_to_backend into use_pgRouting_A_star
justinefricou Dec 10, 2024
6f99538
Correct unit tests after merge
justinefricou Dec 10, 2024
3985291
Merge move_routing_to_backend into use_pgRouting_A_star
justinefricou Dec 11, 2024
5250a0a
Merge branch 'move_routing_to_backend' into use_pgRouting_A_star
justinefricou Dec 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
name: Python Unittests
runs-on: ubuntu-latest
container: makinacorpus/geodjango:${{ matrix.os }}

permissions:
packages: write # required to publish docker image

Expand Down
38 changes: 24 additions & 14 deletions docs/install/import.rst
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ or `via QGis following this blog post <https://makina-corpus.com/sig-webmapping/
* **Geometric type** : Linestring
* **Expected formats** (supported by GDAL) : Shapefile, Geojson, Geopackage
* **Template** : :download:`paths.geojson <../files/import/paths.geojson>`
* **Good to know** :
* **Good to know** :
* The default SRID code is 4326
* The default encoding is UTF-8
* Imported paths are unpublished by default
Expand Down Expand Up @@ -143,6 +143,16 @@ After importing a large quantity of paths, it is recommended to pre-generate the
paths graph needed for the routing. This action is not mandatory, but will reduce the time needed for the first
routing following the import.

To pre-generate the graph, use the ``generate_pgr_network_topology`` command::

sudo geotrek generate_pgr_network_topology
OR
docker compose run --rm web ./manage.py generate_pgr_network_topology

After importing a large quantity of paths, it is recommended to pre-generate the
paths graph needed for the routing. This action is not mandatory, but will reduce the time needed for the first
routing following the import.

To pre-generate the graph, use the ``generate_pgr_network_topology`` command::

sudo geotrek generate_pgr_network_topology
Expand Down Expand Up @@ -458,17 +468,17 @@ It is also possible to import sensitive areas through command line:

sudo geotrek import geotrek.sensitivity.parsers.BiodivParser

.. warning::
If you don't see any data in your area, it means that Biodiv'Sports does not contains data for your territory.
Then it is widely recommended to add your data directly into Biodiv'Sports, as it will be available for
multiple users, and then retrieve them into your Geotrek instance. To import data in Biodiv'Sports
.. warning::
If you don't see any data in your area, it means that Biodiv'Sports does not contains data for your territory.
Then it is widely recommended to add your data directly into Biodiv'Sports, as it will be available for
multiple users, and then retrieve them into your Geotrek instance. To import data in Biodiv'Sports
go visit its website: https://biodiv-sports.fr


Import from shapefile
---------------------

Imported data must be in standard ESRI shapefile format.
Imported data must be in standard ESRI shapefile format.
The various Shapefile files (``.shp``, ``.shx``, ``.dbf``, ``.prj``, *etc*.) must be assembled in a zip archive.

.. warning::
Expand All @@ -478,7 +488,7 @@ Attribute data for sensitive areas species

- ``espece``: Species name. Mandatory. A species with this name must first have been created in Biodiv'sports. Otherwise, import of the line will fail.
- ``contact``: Contact in text or HTML format. *Optional*.
- ``descriptio``: Description in text or HTML format. *Optional*.
- ``descriptio``: Description in text or HTML format. *Optional*.

.. warning::
Species name must strictly respect the species name string (accentuation, case and punctuation).
Expand Down Expand Up @@ -522,7 +532,7 @@ or:
sudo geotrek import geotrek.sensitivity.parsers.RegulatorySensitiveAreaShapeParser <file.shp>.


.. warning::
.. warning::
Relaunching an import **with the same file** will create duplicates.


Expand Down Expand Up @@ -681,7 +691,7 @@ Import POIs
* **Geometric type** : Point
* **Expected formats** (supported by GDAL) : Shapefile, Geojson, Geopackage
* **Template** : :download:`poi.geojson <../files/import/poi.geojson>`
* **Good to know** :
* **Good to know** :
* The SRID must be 4326
* The default encoding is UTF-8
* Imported POIs are unpublished by default
Expand Down Expand Up @@ -811,7 +821,7 @@ Import Infrastructure
* **Geometric type** : Point
* **Expected formats** (supported by GDAL) : Shapefile, Geojson, Geopackage
* **Template** : :download:`infrastructure.geojson <../files/import/infrastructure.geojson>`
* **Good to know** :
* **Good to know** :
* The SRID must be 4326
* The default encoding is UTF-8
* Imported infrastructures are unpublished by default
Expand Down Expand Up @@ -990,7 +1000,7 @@ Import Signage
* **Geometric type** : Point
* **Expected formats** (supported by GDAL) : Shapefile, Geojson, Geopackage
* **Template** : :download:`signage.geojson <../files/import/signage.geojson>`
* **Good to know** :
* **Good to know** :
* The default SRID code is 4326
* The default encoding is UTF-8
* Imported signage are unpublished by default
Expand Down Expand Up @@ -1068,7 +1078,7 @@ Import Cities
* **Geometric type** : Polygon
* **Expected formats** (supported by GDAL) : Shapefile, Geojson, Geopackage
* **Template** : :download:`cities.geojson <../files/import/cities.geojson>`
* **Good to know** :
* **Good to know** :
* The default SRID code is 4326
* The default encoding is UTF-8
* Imported cities are unpublished by default
Expand Down Expand Up @@ -1155,7 +1165,7 @@ Import Districts
* **Geometric type** : Polygon
* **Expected formats** (supported by GDAL) : Shapefile, Geojson, Geopackage
* **Template** : :download:`districts.geojson <../files/import/districts.geojson>`
* **Good to know** :
* **Good to know** :
* The default SRID code is 4326
* The default encoding is UTF-8
* Imported districts are unpublished by default
Expand Down Expand Up @@ -1229,7 +1239,7 @@ Import Restricted areas
* **Geometric type** : Polygon
* **Expected formats** (supported by GDAL) : Shapefile, Geojson, Geopackage
* **Template** : :download:`restrictedareas.geojson <../files/import/restrictedareas.geojson>`
* **Good to know** :
* **Good to know** :
* The default SRID code is 4326
* The default encoding is UTF-8
* Imported restricted areas are unpublished by default
Expand Down
Loading
Loading