diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2012-11-29 23:27:25 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2012-11-29 23:27:25 +0100 |
commit | 575fb95b2dbc1eab52830d42e20997b3b45bad5f (patch) | |
tree | 47f40f004b3c07100cbeb6b898210bd99a4c6336 /docs | |
parent | 32cbf101cefcb4928a751429c09f00d544893037 (diff) | |
download | Chimère-575fb95b2dbc1eab52830d42e20997b3b45bad5f.tar.bz2 Chimère-575fb95b2dbc1eab52830d42e20997b3b45bad5f.zip |
Documentation: add CLI explanation in import/export
Diffstat (limited to 'docs')
-rw-r--r-- | docs/import_export.rst | 25 |
1 files changed, 25 insertions, 0 deletions
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 ************* |