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

📝 Add documentation portal / distance to source #193

Merged
merged 1 commit into from
Jul 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
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


Loading