1
1
Requirements
2
2
============
3
3
4
- QGIS
5
- ----
6
- Python plugins
7
- --------------
8
4
Set OTB environment
9
5
--------------------
10
-
6
+ ```
11
7
export PYTHONPATH=/path/to/OTB/install/lib/otb/python/:$PYTHONPATH
12
8
# Environment variable for old OTB versions (< 5.2)
13
9
export ITK_AUTOLOAD_PATH=/path/to/OTB/install/lib/otb/applications/
14
10
# Environment variable for new OTB versions (>= 5.2)
15
11
export OTB_APPLICATION_PATH=/path/to/OTB/install/lib/otb/applications/
16
12
# Set LD_LIBRARY_PATH
17
13
export LD_LIBRARY_PATH=/path/to/OTB/install/lib/:$LD_LIBRARY_PATH
14
+ ```
18
15
19
16
Set QGIS environment
20
17
---------------------
18
+
19
+ ```
21
20
export QGIS_PREFIX_PATH=/path/to/QGIS/install
22
21
export PYTHONPATH=$QGIS_PREFIX_PATH/share/qgis/python:$QGIS_PREFIX_PATH/share/qgis/python/plugins:$PYTHONPATH
23
22
# Set LD_LIBRARY_PATH
24
23
export LD_LIBRARY_PATH=$QGIS_PREFIX_PATH/lib/:$LD_LIBRARY_PATH
25
24
# Add maintenance folder to python path
26
25
export PYTHONPATH=/path/to/QGIS/src/python/plugins/processing/algs/otb/maintenance:$PYTHONPATH
26
+ ```
27
27
28
28
Check the white and black list for the current OTB version
29
29
----------------------------------------------------------
30
- In the maintenance directory, the OTB applications are split in two files black_list.xml and white_list.xml.
31
- These files are organized as follows :
32
- For each OTB version, a new node version with id as attribute is added to the node data .
33
- Each application is then added in the node app_name.
30
+ In the maintenance directory, the OTB applications are split in two files ` black_list.xml` and ` white_list.xml` .
31
+ These files are organized as follows. For each OTB version, a new node version with id as attribute is added
32
+ to the node data. Each application is then added in the node app_name .
33
+
34
34
```xml
35
35
<?xml version="1.0"?>
36
36
<data>
@@ -52,14 +52,18 @@ Each application is then added in the node app_name.
52
52
</version>
53
53
</data>
54
54
```
55
+
55
56
The list of available applications for each version is not fixed.
56
57
57
58
OTBSpecific_XMLcreation.py
58
59
--------------------------
59
- Warning : Some of the applications needs to be split to be user-friendly. Here comes the file OTBSpecific_XMLcreation.py.
60
- Each function follows the pattern getNameOfTheOTBApplication().
60
+ Warning: Some of the applications needs to be split to be user-friendly. Here comes the file ` OTBSpecific_XMLcreation.py`.
61
+ Each function follows the pattern ` getNameOfTheOTBApplication()` .
61
62
62
63
Creating xml files
63
64
------------------
65
+
66
+ ```
64
67
cd /path/to/QGIS/src/python/plugins/processing/algs/otb/maintenance
65
- python ./OTBHelper.py
68
+ python ./OTBHelper.py
69
+ ```
0 commit comments