OTB Plugin installation
(→Mac OS) |
(→Mac OS) |
||
Line 23: | Line 23: | ||
==Mac OS== | ==Mac OS== | ||
Open '''Documents''' folder in '''Finder'''. Create a new folder named e.g. '''otb'''. | Open '''Documents''' folder in '''Finder'''. Create a new folder named e.g. '''otb'''. | ||
− | On the [https://www.orfeo-toolbox.org/download/ otb download page] | + | On the [https://www.orfeo-toolbox.org/download/ otb download page] right click on {{button|text=MacOS}}. |
− | right click on {{button|text=MacOS}}. {{mitem|text=Download linked file as...}}: '''OTB-7.0.0-Drawin64.run''', Where: | + | {{mitem|text=Download linked file as...}}: '''OTB-7.0.0-Drawin64.run''', Where: open the Documents folder and navigate to the newly created folder '''otb'''. {{button|text=Save}}. |
* Open Terminal | * Open Terminal | ||
<pre> | <pre> | ||
Line 33: | Line 33: | ||
chmod +x OTB-7.0.0-Darwin64.run.txt | chmod +x OTB-7.0.0-Darwin64.run.txt | ||
./OTB-7.0.0-Darwin64.run.txt | ./OTB-7.0.0-Darwin64.run.txt | ||
− | < | + | <\pre> |
You will be asked to install '''xcode-select''' if it is available on your OS. Click {{button|text=Install}}. | You will be asked to install '''xcode-select''' if it is available on your OS. Click {{button|text=Install}}. | ||
Ignore warnings and errors that python bindings are not corecctly defined. | Ignore warnings and errors that python bindings are not corecctly defined. | ||
Line 40: | Line 40: | ||
<pre> | <pre> | ||
cd ~ | cd ~ | ||
− | < | + | <\pre> |
Copy the line shown in your terminal without apostrophs e.g. | Copy the line shown in your terminal without apostrophs e.g. | ||
. /Users/[yourUsername]/Documents/otb/OTB-7.0.0-Darwin64/otbenv.profile | . /Users/[yourUsername]/Documents/otb/OTB-7.0.0-Darwin64/otbenv.profile | ||
Line 46: | Line 46: | ||
<pre> | <pre> | ||
nano .profile | nano .profile | ||
− | < | + | <\pre> |
Paste the line into the editor. Strg + O and Enter for saving the file. | Paste the line into the editor. Strg + O and Enter for saving the file. | ||
Strg + X for file closing. | Strg + X for file closing. | ||
Line 52: | Line 52: | ||
<pre> | <pre> | ||
source .profile | source .profile | ||
− | < | + | <\pre> |
− | Start | + | Start Monteverdi Applications: |
<pre> | <pre> | ||
mapla | mapla | ||
− | < | + | <\pre> |
===Configure OTB plugin=== | ===Configure OTB plugin=== |
Revision as of 14:36, 13 November 2019
- Download latest Orfeo toolbox standalone Binary packages. They are available for Windows 7 or higher, Linux, Mac OS and can be downloaded from the OTB download page.
Contents |
Windows
Pick the correct version (32 bit or 64 bit) depending on your system from the otb download page. Unzip the downloaded OTB binary archive to a local folder (e.g. C:\opt). The folder contains both command line and native otb graphical launchers. The applications can be launched from the Mapla launcher. If you want to use the otbcli and otbgui launchers, you can initialize a command prompt with otbenv.bat.
Configure OTB plugin
Since QGIS 3.8 "Zanzibar" a Processing OTB plugin ist already included in the default QGIS distribution. No need to install an additional plugin.
- Open processing settings from the main menu:
Settings -> Options -> Processing (left panel) You can see OTB under "Providers".
- Expand OTB tab
- Tick Activate box
- Set OTB folder. This is location of your OTB installation (e.g. C:\opt\OTB-7.0.0-Win64)
- Set OTB application folder. This is location of your OTB applications. (e.g. C:\opt\OTB-7.0.0-Win64\lib\otb\applications).
- Click OK to save settings and close dialog. If settings are correct, you will have OTB algorithms loaded in QGIS Processing toolbox.
Mac OS
Open Documents folder in Finder. Create a new folder named e.g. otb. On the otb download page right click on MacOS. Download linked file as...: OTB-7.0.0-Drawin64.run, Where: open the Documents folder and navigate to the newly created folder otb. Save.
- Open Terminal
cd Documents/otb <\pre> * Run the installer <pre> chmod +x OTB-7.0.0-Darwin64.run.txt ./OTB-7.0.0-Darwin64.run.txt <\pre> You will be asked to install '''xcode-select''' if it is available on your OS. Click {{button|text=Install}}. Ignore warnings and errors that python bindings are not corecctly defined. If you want to use the otbcli and otbgui launchers, you can access them via a terminal prompt. Configure the required environment variables permenently. Change to your homes directory <pre> cd ~ <\pre> Copy the line shown in your terminal without apostrophs e.g. . /Users/[yourUsername]/Documents/otb/OTB-7.0.0-Darwin64/otbenv.profile In terminal type: <pre> nano .profile <\pre> Paste the line into the editor. Strg + O and Enter for saving the file. Strg + X for file closing. Test environment settings. <pre> source .profile <\pre> Start Monteverdi Applications: <pre> mapla <\pre> ===Configure OTB plugin=== * Start QGIS 3.10 * Open processing settings from the main menu: {{mitem|text=Settings -> Options -> Processing (left panel)}} You can see OTB under "Providers". * Expand OTB tab * Tick Activate box * Set OTB folder. This is location of your OTB installation (e.g. {{typed|text=/Applications/OTB-6.6.1-Darwin64}}) * Set OTB application folder. This is location of your OTB applications. (e.g. {{typed|text=/Applications/OTB-6.6.1-Darwin64/lib/otb/applications}}). * Click {{button|text=OK}} to save settings and close dialog. If settings are correct, you will have OTB algorithms loaded in QGIS Processing toolbox. [[File:QGIS_.png|600px]] ==Linux== On the [https://www.orfeo-toolbox.org/download/ otb download page] right click on {{button|text=Linux}}. {{mitem|text=Save as..}}. Choose a folder where files are stored permanently e.g. /home/username/ Open a terminal: {{button|text=Ctrl + alt + t}} Uncompress the archive to a folder where you have full permissions (e.g. in your homes: ~/otb): <pre> chmod +x OTB-7.0.0-Linux64.run ./OTB-7.0.0-Linux64.run
The applications can be launched from the Mapla launcher. If you want to use the otbcli and otbgui launchers, you can initialize your environment with
source OTB-7.0.0-Linux/otbenv.profile
Configure OTB plugin
- Open processing settings from the main menu:
Settings -> Options -> Processing (left panel) You can see OTB under "Providers".
- Expand OTB tab
- Tick Activate box
- Set OTB folder. This is location of your OTB installation (e.g. /home/[username]/OTB-7.0.0-Linux64)
- Set OTB application folder. This is location of your OTB applications. (e.g. /home/username/OTB-7.0.0-Linux64/lib/otb/applications).
- Click OK to save settings and close dialog. If settings are correct, you will have OTB algorithms loaded in QGIS Processing toolbox.