Skip to content

Commit b88d92d

Browse files
committedAug 17, 2016
ENH update readme
1 parent 342fb04 commit b88d92d

File tree

1 file changed

+60
-7
lines changed
  • python/plugins/processing/algs/otb/maintenance

1 file changed

+60
-7
lines changed
 
Lines changed: 60 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,64 @@
1+
Requirements
2+
============
13

2-
Requirement
3-
1) qgis
4-
2) sextante_taudem (TauDEM-1.1.1.zip)
5-
3) sextante (sextante-1.0.9.zip)
6-
4) PYTHONPATH=.:/usr/lib/otb/python:/usr/share/qgis/python/plugins:~/.qgis2/python/plugins
7-
5) ITK_AUTOLOAD_PATH=/usr/lib/otb/applications
4+
QGIS
5+
----
6+
Python plugins
7+
--------------
8+
Set OTB environment
9+
--------------------
10+
11+
export PYTHONPATH=/path/to/OTB/install/lib/otb/python/:$PYTHONPATH
12+
# Environment variable for old OTB versions
13+
export ITK_AUTOLOAD_PATH=/path/to/OTB/install/lib/otb/applications/
14+
# Environment variable for new OTB versions
15+
export OTB_APPLICATION_PATH=/path/to/OTB/install/lib/otb/applications/
16+
# Set LD_LIBRARY_PATH
17+
export LD_LIBRARY_PATH=/path/to/OTB/install/lib/:$LD_LIBRARY_PATH
18+
19+
Set QGIS environment
20+
---------------------
21+
export PYTHONPATH=:/usr/share/qgis/python/plugins:~/.qgis2/python/plugins:$PYTHONPATH
22+
# Set LD_LIBRARY_PATH
23+
export LD_LIBRARY_PATH=/path/to/QGIS/install/lib/:$LD_LIBRARY_PATH
24+
# Add maintenance folder to python path
25+
export PYTHONPATH=/path/to/QGIS/src/python/plugins/processing/algs/otb/maintenance:$PYTHONPATH
26+
27+
Check the white and black list for the current OTB version
28+
----------------------------------------------------------
29+
In the maintenance directory, the OTB applications are split in two files black_list.xml and white_list.xml.
30+
These files are organized as follows :
31+
For each OTB version, a new node version with id as attribute is added to the node data.
32+
Each application is then added in the node app_name.
33+
```xml
34+
<?xml version="1.0"?>
35+
<data>
36+
<version id="3.16">
37+
<app_name>BinaryMorphologicalOperation</app_name>
38+
<app_name>EdgeExtraction</app_name>
39+
<app_name>GrayScaleMorphologicalOperation</app_name>
40+
<app_name>DimensionalityReduction</app_name>
41+
<app_name>Pansharpening</app_name>
42+
<app_name>ExtractROI</app_name>
43+
<app_name>RigidTransformResample</app_name>
44+
<app_name>Segmentation</app_name>
45+
<app_name>KMeansClassification</app_name>
46+
<app_name>TrainSVMImagesClassifier</app_name>
47+
<app_name>ComputeConfusionMatrix</app_name>
48+
<app_name>OpticalCalibration</app_name>
49+
<app_name>SarRadiometricCalibration</app_name>
50+
<app_name>Smoothing</app_name>
51+
</version>
52+
</data>
53+
```
54+
The list of available applications for each version is not fixed.
55+
56+
OTBSpecific_XMLcreation.py
57+
--------------------------
58+
Warning : Some of the applications needs to be split to be user-friendly. Here comes the file OTBSpecific_XMLcreation.py.
59+
Each function follows the pattern getNameOfTheOTBApplication().
860

961
Creating xml files
10-
cd .qgis2/python/plugin/sextante/otb/maintenance
62+
------------------
63+
cd /path/to/QGIS/src/python/plugins/processing/algs/otb/maintenance
1164
python ./OTBHelper.py

0 commit comments

Comments
 (0)
Please sign in to comment.