Skip to content

Commit

Permalink
📝 Add documentation portal / distance to source
Browse files Browse the repository at this point in the history
  • Loading branch information
LePetitTim committed Jul 31, 2023
1 parent a6a3208 commit 180e4e7
Show file tree
Hide file tree
Showing 6 changed files with 122 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,15 @@ CHANGELOG
1.1.0+dev (XXXX-XX-XX)
-------------------------

**Documentation**

* Add documentation portals
* Add documentation distance to source

**Enhancement**

* Add informations when hub'eau does not send a json
* Add migration generation distance to source
* Add contributions validated and publication date
* Add contributions type / category filters
* Add contributions manager
Expand Down
Binary file added docs/images/distance_to_source.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ It is a `Django <https://www.djangoproject.com/>`_ application, based on `Geotre
usage/features
usage/modules
usage/configuration
usage/portals
usage/import_data

.. toctree::
Expand Down
5 changes: 5 additions & 0 deletions docs/usage/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ To customize lists for each module, go to django administration page.
* Parameters
* Station profiles
* Units
* Portal
* Portals
* Map base layers
* Group layers
* Layers
* Proceeding: Event types
* Studies Study types
* Watershed
Expand Down
14 changes: 14 additions & 0 deletions docs/usage/modules.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,20 @@ Streams

Streams is a line with a source location and flow type. Length is computed from geometry.

Distances to every objects are computed during the creation of an object and stocked in the table distancetosource.
It's the distance of the shortest path between the object and the stream
added with the length between the point of junction between the shortest path
and the stream and the source location.

If the source location is not at the beginning of the stream, we also add the distance of the shortest
path between source location and the stream.



.. image:: /images/distance_to_source.png
:alt: Object distance to source


Descriptions
------------

Expand Down
95 changes: 95 additions & 0 deletions docs/usage/portals.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
Valorization
============

To generate a good structure of your portal Georiviere, firstly you need to configurate in admin
portals, map base layers, layers and groups.

Portal
------

Fields :

* Name
* Web site
* Title
* Description
* Main color
* Min zoom on the map of your portal
* Max zoom on the map of your portal
* Spatial extent of your portal

Map Base Layers
---------------

Map base layers are linked with one unique portal

* Label
* Url
* Min zoom of this map base layer
* Max zoom of this map base layer
* Attribution
* Portal
* Order


Layers
------

Layers are generated for each type of element you could add on your portal web site :

* Contributions
* Sensitivity
* Districts
* Cities
* POIs (each category has it layer)
* Streams
* Watersheds

Firstly, you need to create your portal before accessing layers.
Then, you will be able to add them in a group of layer, change its labels...

If you create a new category of poi, a new layer is generated.

The fields of layers are :

* Label
* Group
* Active by default
* Style
* Order
* Hidden

Style can be changed following the documentation of leaflet,
for example:
`{"fillColor": "#d4b485"}`

(https://leafletjs.com/reference.html#path-stroke)

When a layer is hidden, the layer is not used in the portal.

The label is used in the portal and will be shown it.

Groups
------

You can create as many group as you need and can add layers in the group.

When a layer is not assigned to a group, the layer is groupped in a default group.

The fields of groups are :

* Label
* Order

---------------


It's better to create everything in this order :

* Create your portal
* Create your base layers
* Create the groups

* Modify the generated layers


0 comments on commit 180e4e7

Please sign in to comment.