From 87b06ed004cbae14b1ac2b4c5d4ac27dfab27caa Mon Sep 17 00:00:00 2001
From: Fabian Schindler <fabian.schindler.strauss@gmail.com>
Date: Tue, 30 Jun 2020 17:02:27 +0200
Subject: [PATCH] Imrpvements to ingestion

---
 documentation/operator-guide/ingestion.rst | 40 ++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/documentation/operator-guide/ingestion.rst b/documentation/operator-guide/ingestion.rst
index 273455d5..dc1b31aa 100644
--- a/documentation/operator-guide/ingestion.rst
+++ b/documentation/operator-guide/ingestion.rst
@@ -233,3 +233,43 @@ The reverse command excludes a product from a collection:
     manage.py collection exclude <collection-id> <product-id>
 
 Again, multiple products can be excluded in a single call.
+
+
+Product Handling
+~~~~~~~~~~~~~~~~
+
+Registration
+  Products can be registered using the EOxServer CLI tools as well.
+
+  .. code-block:: bash
+
+    manage.py product register \
+        --metadata-file data25 /OA/PL00/1.0/00/urn:eop:DOVE:MULTISPECTRAL_4m:20180811_081455_1054_3be7/0001/PL00_DOV_MS_L3A_20180811T081455_20180811T081455_TOU_1234_3be7.DIMA.tar/metadata.xml \
+        --print-identifier \
+        --type PL00
+
+  The identifier of the newly registered product is printed to the console and
+  can be used to put it into a collection. Additionally, it is necessary to add
+  a coverage to it, which can be registered like:
+
+  .. code-block:: bash
+
+    manage.py coverage register \
+        -d data25 /OA/PL00/1.0/00/urn:eop:DOVE:MULTISPECTRAL_4m:20180811_081455_1054_3be7/0001/PL00_DOV_MS_L3A_20180811T081455_20180811T081455_TOU_1234_3be7.DIMA.tar/some.tif \
+        -m data25 /OA/PL00/1.0/00/urn:eop:DOVE:MULTISPECTRAL_4m:20180811_081455_1054_3be7/0001/PL00_DOV_MS_L3A_20180811T081455_20180811T081455_TOU_1234_3be7.DIMA.tar/metadata.xml \
+        --identifier "${product_id}_coverage" \
+        --type RGBNir
+
+Deregistration
+  Products and coverages need to be derigestered when no longer in use. A
+  product can be deregistered using its identifier:
+
+  .. code-block:: bash
+
+    manage.py product deregister "${product_id}"
+
+  The contained coverage must also be deregistered manually:
+
+  .. code-block:: bash
+
+    manage.py coverage deregister "${product_id}_coverage"
-- 
GitLab