summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNawa <bellefeegore@follepensee.net>2012-11-29 23:55:42 +0100
committerNawa <bellefeegore@follepensee.net>2012-11-29 23:55:42 +0100
commitd8f7aefbc5d351ca82d8184ecb5ac493f682e894 (patch)
tree973932a3fa8626def04314d5e3ed2f5f959b84db
parent3dac3aa1a580f04376a1c16d2416f34351b14adb (diff)
parent8342a51dc542a0304025fda2171f7af11a4047b7 (diff)
downloadChimère-d8f7aefbc5d351ca82d8184ecb5ac493f682e894.tar.bz2
Chimère-d8f7aefbc5d351ca82d8184ecb5ac493f682e894.zip
Merge branch 'master' of ssh://daenerys.peacefrogs.net/var/local/git/chimere
-rw-r--r--docs/fr/customisation.rst58
-rw-r--r--docs/import_export.rst25
2 files changed, 83 insertions, 0 deletions
diff --git a/docs/fr/customisation.rst b/docs/fr/customisation.rst
new file mode 100644
index 0000000..7d00432
--- /dev/null
+++ b/docs/fr/customisation.rst
@@ -0,0 +1,58 @@
+.. -*- coding: utf-8 -*-
+
+=============
+Customisation
+=============
+
+:Auteur: Étienne Loks
+:date: 2012-11-29
+:Copyright: CC-BY 3.0
+
+Ce document présente l'installation de Chimère.
+Ce document a été mis à jour pour la version 2.0.0 de Chimère.
+
+.. _managing-layers:
+
+Gestion des calques
+-------------------
+
+Il y a différents calques disponibles par défaut dans Chimère (OSM Mapnik, OSM
+Mapquest, OSM Transport map, OSM Cyclemap). Vous pouvez ajouter d'autres calques
+en utilisant les pages d'administration de Chimère.
+
+Le nouveau calque est défini en utilisant une chaîne de code Javascript adéquate
+de la bibliothèque `Openlayers <http://openlayers.org/>`_. Ce code Javascript
+dois être une instance de *Openlayers Layer* sans point virgule final.
+
+Par exemple définir un calque Bing peut être fait avec un code de ce type ::
+
+ new OpenLayers.Layer.Bing({
+ name: "Aerial",
+ key: "my-bing-API-key",
+ type: "Aerial"})
+
+
+Référez vous à la `documentation de l'API Openlayers
+<http://dev.openlayers.org/releases/OpenLayers-2.12/doc/apidocs/files/OpenLayers-js.html>`_
+pour plus de détail.
+
+
+Personnaliser l'agencement et le design
+---------------------------------------
+
+Si vous souhaitez simplement améliorer la feuille de style CSS, le plus simple
+est d'ajouter un lien vers une feuille de style supplémentaire dans vos *Zones*
+cf. :ref:`managing-areas`.
+
+Si vous souhaitez faire des changements plus importants dans l'agencement et la
+présentation le (bien nommé) *example_project* peut être personnalisé pour
+correspondre à vos besoins. Chaque fichier de patron de page présent dans le
+dossier *chimere/templates* peut être copié dans votre dossier
+*monprojet/templates* puis modifié.
+
+Il est juste nécessaire de copier les fichiers que vous souhaitez modifier.
+Ces fichiers sont écrits dans le langage de patron Django principalement composé
+de HTML avec des éléments de logique. Référez vous à la `documentation des
+patrons Django <https://docs.djangoproject.com/en/1.4/ref/templates/>`_ pour
+plus de détails.
+
diff --git a/docs/import_export.rst b/docs/import_export.rst
index eb581ce..bc422b1 100644
--- a/docs/import_export.rst
+++ b/docs/import_export.rst
@@ -137,6 +137,16 @@ the **Import** action and validate.
The import should be processing normally. If not, an explicit error message
should be printed in the state column of your import.
+You can also launch imports with the CLI (ideal for crontab jobs). In the
+project directory you only need to launch the command::
+
+ ./manage.py chimere_import <import_id>
+
+- *import_id* is the import ID
+
+If you launch the command without *import_id* the list of imports available is
+presented and you can choose one.
+
Managing imported data
**********************
@@ -159,6 +169,21 @@ Directly from the :ref:`geographic items list <geographic-items-management>` you
can export to the chosen format. All you have to do is to select the desired
items, choose the appropriate action in the action list and validate.
+You can also launch exports with the CLI (ideal for crontab jobs). In the
+project directory you only need to launch the command::
+
+ ./manage.py chimere_export <subcategory_id> <CSV|KML|SHP> \
+ <marker|route> <filename>
+
+- *subcategory_id* is the ID of the chosen subcategory
+- *CSV|KML|SHP* is the chosen format
+- *marker|route* is to get marker or route
+- *filename* is the output filename
+
+If you launch the command without arguments you will be prompted for the choice
+to make for your export.
+
+
Export to OSM
*************