OTB Plugin installation

From AWF-Wiki
(Difference between revisions)
Jump to: navigation, search
(Configure QGIS Processing tools)
(Install OTB)
Line 22: Line 22:
 
==Install OTB==
 
==Install OTB==
 
Please read the official installation instructions for MacOSx : [https://www.orfeo-toolbox.org/CookBook/Installation.html]
 
Please read the official installation instructions for MacOSx : [https://www.orfeo-toolbox.org/CookBook/Installation.html]
* Uninstall other versions than OTB version 7.3.0. Open '''Finder'''. Search for OTB This Mac and delete the old OTB installation folder. Right click {{mitem|text=Move to Trash}}.
+
* Uninstall other versions than OTB version 7.4.0. Open '''Finder'''. Search for OTB This Mac and delete the old OTB installation folder. Right click {{mitem|text=Move to Trash}}.
 
* 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'''.
Download OTB '''MAC''' Version 7.3.0 from the OTB homepage [https://www.orfeo-toolbox.org/download/ download link].
+
Download OTB '''MAC''' Version 7.4.0 from the OTB homepage [https://www.orfeo-toolbox.org/download/ download link].
''Save as:'' '''OTB-7.3.0-Darwin64.run'''.  
+
''Save as:'' '''OTB-7.4.0-Darwin64.run'''.  
 
''Where:'' Open the Documents folder and navigate to the newly created folder '''otb'''. {{button|text=Save}}.
 
''Where:'' Open the Documents folder and navigate to the newly created folder '''otb'''. {{button|text=Save}}.
 
* Open Terminal
 
* Open Terminal
 
<pre> cd Documents/otb </pre>
 
<pre> cd Documents/otb </pre>
 
* Run the installer
 
* Run the installer
<pre> chmod +x OTB-7.3.0-Darwin64.run
+
<pre> chmod +x OTB-7.4.0-Darwin64.run
 
./OTB-7.3.0-Darwin64.run</pre>
 
./OTB-7.3.0-Darwin64.run</pre>
 
*or (if it is downloadad as .txt)  
 
*or (if it is downloadad as .txt)  
<pre> chmod +x OTB-7.3.0-Darwin64.run.txt
+
<pre> chmod +x OTB-7.4.0-Darwin64.run.txt
./OTB-7.3.0-Darwin64.run.txt</pre>
+
./OTB-7.4.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 correctly defined.
 
Ignore warnings and errors that python bindings are not correctly defined.
Line 54: Line 54:
 
<pre> mapla </pre>
 
<pre> mapla </pre>
 
You may also start Mapla and Monteverdi from '''Applications'''.  
 
You may also start Mapla and Monteverdi from '''Applications'''.  
* Open '''Finder'''. Navigate to Documents/otb/OTB-7.3.0-Darwin64.
+
* Open '''Finder'''. Navigate to Documents/otb/OTB-7.4.0-Darwin64.
 
* Drag and drop '''Mapla''' and '''Monteverdi''' into '''Applications'''.  
 
* Drag and drop '''Mapla''' and '''Monteverdi''' into '''Applications'''.  
 
* Navigate to '''Applications''' and start '''Mapla''' with double click.
 
* Navigate to '''Applications''' and start '''Mapla''' with double click.

Revision as of 10:09, 22 October 2021

Contents

Windows10 (64bit) Windows logo.png

Install OTB

Download OTB Version 7.4.0 (64bit) from this download link. Unzip the downloaded OTB binary archive to a local folder (e.g. C:\opt) without blanks, special symbols or umlauts.

info.png The extracted folder OTB-7.4.0-Win64
contains both command line and native otb graphical launchers. The applications may be launched standalone from the mapla.bat launcher. If you want to use the otbcli and otbgui launchers, you can initialize a command prompt with otbenv.bat.

Configure QGIS Processing tools

  • Start QGIS 3.16
  • Open processing settings from the main menu:

Settings -> Options -> Processing (left panel) You can see OTB under "Providers".

  • Expand OTB tab
  • Tick Activate box
  • Maximum RAM to use: depends on the available RAM on your PC.
  • Set OTB folder. This is location of your OTB installation (e.g. C:\opt\OTB-7.4.0-Win64)
  • Set OTB application folder. This is location of your OTB applications. (e.g. C:\opt\OTB-7.4.0-Win64\lib\otb\applications). Use the file chooser button on the right side. The Multiple selection window opens. Click Add and search for the folder. OK.

Qgis-otb-plugin settings.png

  • Click OK to save settings and close dialog. If settings are correct, OTB algorithms are loaded in QGIS Processing toolbox.

Mac OS Apple logo.png

Install OTB

Please read the official installation instructions for MacOSx : [1]

  • Uninstall other versions than OTB version 7.4.0. Open Finder. Search for OTB This Mac and delete the old OTB installation folder. Right click Move to Trash.
  • Open Documents folder in Finder. Create a new folder named e.g. otb.

Download OTB MAC Version 7.4.0 from the OTB homepage download link. Save as: OTB-7.4.0-Darwin64.run. Where: Open the Documents folder and navigate to the newly created folder otb. Save.

  • Open Terminal
 cd Documents/otb 
  • Run the installer
 chmod +x OTB-7.4.0-Darwin64.run
./OTB-7.3.0-Darwin64.run
  • or (if it is downloadad as .txt)
 chmod +x OTB-7.4.0-Darwin64.run.txt
./OTB-7.4.0-Darwin64.run.txt

You will be asked to install xcode-select if it is available on your OS. Click Install. Ignore warnings and errors that python bindings are not correctly defined.

If you want to use the otbcli and otbgui launchers, you can access them via a terminal prompt.

Configure the required environment variables permanently:

Change to your homes directory
cd ~

Copy the line shown in your terminal without apostrophs. Replace [yourUsername] with your user name!

 . /Users/[yourUsername]/Documents/otb/OTB-7.3.0-Darwin64/otbenv.profile

In terminal type:

 nano .profile 

Paste the line into the editor. Strg + o and Enter for saving the file. Strg + xfor file closing. Test the environment settings:

 source .profile 

Start Monteverdi Applications:

 mapla 

You may also start Mapla and Monteverdi from Applications.

  • Open Finder. Navigate to Documents/otb/OTB-7.4.0-Darwin64.
  • Drag and drop Mapla and Monteverdi into Applications.
  • Navigate to Applications and start Mapla with double click.

Configure QGIS Processing tools

  • Start QGIS 3.16
  • Open processing settings from the main menu:

Settings -> Options -> Processing (left panel) You can see OTB under "Providers".

  • Expand OTB tab
  • Set OTB application folder using the file chooser on the right. Replace [yourUsername] with your user name! /Users/[yourUsername]/Documents/otb/OTB-7.3.0-Darwin64/lib/otb/applications).
  • Set OTB folder. This is location of your OTB installation (e.g. /Users/[yourUsername]/Documents/otb/OTB-7.3.0-Darwin64)
  • Do not forget: Tick Activate on.
  • Click OK to save settings and close dialog. If settings are correct, you will have OTB algorithms correctly loaded in QGIS Processing toolbox.

QGIS .png

Linux distros Tux.png

Install OTB

Right click on this otb download link Save as... Choose a folder where files are stored permanently e.g. /home/<yourUserName>/ Open a terminal: Ctrl + alt + t Uncompress the archive to a folder where you have full permissions (e.g. in your homes: ~/otb):

chmod +x OTB-7.3.0-Linux64.run
./OTB-7.3.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.3.0-Linux/otbenv.profile

Configure QGIS Processing tools

  • Start QGIS 3.16
  • 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.3.0-Linux64)
  • Set OTB application folder. This is the location of your OTB applications. (e.g. /home/<YourUserName>/OTB-7.3.0-Linux64/lib/otb/applications). Replace <YourUserName> with your user name.
  • Click OK to save settings and close dialog. If settings are correct, you will have OTB algorithms loaded in QGIS Processing toolbox.
Personal tools
Namespaces

Variants
Actions
Navigation
Development
Toolbox
Print/export