Skip to content
Snippets Groups Projects
Commit ff4190a6 authored by Thibaut ROMAIN's avatar Thibaut ROMAIN
Browse files

DOC: fix a regression in generateWrappersRstDoc and update First steps with the one line install

parent 004818fa
No related branches found
No related tags found
1 merge request!1059ENH: Add a one line otb installer
Pipeline #16548 canceled
...@@ -445,7 +445,6 @@ def GenerateRstForModules(rst_dir,otb_root): ...@@ -445,7 +445,6 @@ def GenerateRstForModules(rst_dir,otb_root):
if os.path.isdir(os.path.join(otb_modules_dir, modname))] if os.path.isdir(os.path.join(otb_modules_dir, modname))]
#Create the rst for each module #Create the rst for each module
moduleslist.remove("ThirdParty") moduleslist.remove("ThirdParty")
moduleslist.remove("Remote")
moduleslist.sort() moduleslist.sort()
for mod in moduleslist: for mod in moduleslist:
......
...@@ -16,42 +16,31 @@ Debian / Ubuntu ...@@ -16,42 +16,31 @@ Debian / Ubuntu
Simple OTB use case : Compute NDVI with the CLI interface Simple OTB use case : Compute NDVI with the CLI interface
````````````````````````````````````````````````````````` `````````````````````````````````````````````````````````
Download OTB Download and install OTB
++++++++++++ ++++++++++++++++++++++++
.. code-block:: bash .. code-block:: bash
curl https://www.orfeo-toolbox.org/packages/archives/OTB/OTB-10.0.0-Linux.tar.gz -o /Path/Download/OTB-10.0.tar.gz bash -c "$(curl -fsSL https://orfeo-toolbox.org/packages/install-otb.sh) 9.1.0 $HOME/otb"
Installation
++++++++++++
.. code-block:: bash
# Install otb
cd /Path/Download
tar xvf OTB-10.0.tar.gz --one-top-level="/Path/To/Install/OTB"
source /Path/To/Install/OTB/otbenv.profile
Download an example image Download an example image
+++++++++++++++++++++++++ +++++++++++++++++++++++++
.. code-block:: bash .. code-block:: bash
curl https://www.orfeo-toolbox.org/packages/examples/phr_xs.tif -o /Path/You/Want/phr_xs.tif curl https://www.orfeo-toolbox.org/packages/examples/phr_xs.tif -o $HOME/Data/phr_xs.tif
Compute NDVI using the CLI interface Compute NDVI using the CLI interface
++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++
.. code-block:: bash .. code-block:: bash
otbcli_BandMath –il /Path/You/Want/phr_xs.tif –out /Path/You/Want/ndvi.tif –exp “(im1b4-im1b1)/ (im1b4+im1b1)” otbcli_BandMath –il $HOME/Data/phr_xs.tif –out $HOME/Data/ndvi.tif –exp “(im1b4-im1b1)/ (im1b4+im1b1)”
Use Python API to compute NDVI Use Python API to compute NDVI
++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++
To use the Python API you have first to recompile the bindings for your version of Python. By default they are compiled for Python 3.10 To use the Python API you have first to recompile the bindings for your version of Python if this version is different than 3.10.
.. code-block:: bash .. code-block:: bash
......
Windows binary packages are available for Windows 10 64bits or higher. Windows binary packages are available for Windows 10 64bits or higher.
In order to run properly, you need to make sure you installed the required system dependencies In order to run properly, you need to make sure you installed the required system dependencies
Important Note
``````````````
Monteverdi has been removed in OTB >= 9 version, you can use QGIS which is now the default viewer for launching OTB applications
Installation of required dependencies Installation of required dependencies
````````````````````````````````````` `````````````````````````````````````
- You must have "Visual C++ Redistributable for Visual Studio 2019" installed for using this package. - You must have "Visual C++ Redistributable for Visual Studio 2019" installed for using this package.
It can be downloaded freely from `microsoft <https://aka.ms/vs/16/release/vc_redist.x64.exe>`_ It can be downloaded freely from `microsoft <https://aka.ms/vs/16/release/vc_redist.x64.exe>`_
Important Note
``````````````
Monteverdi has been removed in OTB >= 9 version, you can use QGIS which is now the default viewer for OTB
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment