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

ENH: add install-otb one line install script

parent 34c96ef5
No related branches found
No related tags found
1 merge request!1059ENH: Add a one line otb installer
#!/bin/bash
#
# Copyright (C) 2005-2025 Centre National d'Etudes Spatiales (CNES)
#
# This file is part of Orfeo Toolbox
#
# https://www.orfeo-toolbox.org/
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# This script permits to build gdal bindings with python > 3.10 which is the default version in OTB 10
#Initialize variables if no input parameters has been set
OTB_VERSION="9.1.0"
INSTALL_FOLDER="$HOME/otb-$OTB_VERSION"
if [ ! -z "$1" ]:
OTB_VERSION="$1"
fi
if [ ! -z "$2" ]:
INSTALL_FOLDER="$2"
fi
# Download and install
curl https://www.orfeo-toolbox.org/packages/archives/OTB/OTB-$OTB_VERSION-Linux.tar.gz -o /tmp/OTB-$OTB_VERSION-Linux.tar.gz
tar xf /tmp/OTB-$OTB_VERSION-Linux.tar.gz --one-top-level=$INSTALL_FOLDER
# Source the environment
. $INSTALL_FOLDER/otbenv.profile
\ No newline at end of file
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