Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OTB provider setup #29189

Closed
qgib opened this issue Feb 25, 2019 · 11 comments
Closed

OTB provider setup #29189

qgib opened this issue Feb 25, 2019 · 11 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers Processing Relating to QGIS Processing framework or individual Processing algorithms

Comments

@qgib
Copy link
Contributor

qgib commented Feb 25, 2019

Author Name: Paolo Cavallini (@pcav)
Original Redmine Issue: 21372
Affected QGIS version: 3.7(master)
Redmine category:processing/otb
Assignee: Rashad Kanavath


In Debian, the paths to add to the config are /usr/lib/x86_64-linux-gnu/otb/applications/ and /usr. This is not documented, and it is difficult to find for the user. Better add it as a default (similarly for other OSs).
More generally: why is this necessary? Other backends do not need a config, and this is way easier for the user.

@qgib
Copy link
Contributor Author

qgib commented Feb 25, 2019

Author Name: Paolo Cavallini (@pcav)


  • category_id was changed from Processing/Core to Processing/OTB

@qgib
Copy link
Contributor Author

qgib commented Feb 25, 2019

Author Name: Paolo Cavallini (@pcav)


  • assigned_to_id was configured as Rashad Kanavath

@qgib
Copy link
Contributor Author

qgib commented Feb 28, 2019

Author Name: Rashad Kanavath (@rkanavath)


I will list three widely used oses and my options below.

  1. Windows:
    OTB was removed from OSGeo4W due to issues with geos and ossim. So it cannot check a list of possible install path or use some relative path to OSGEO4W_ROOT.
    What it can have is to work on integration of OTB install (like grass) into QGIS windows installer. This will be easy and users can opt-in if they want to download and install otb from installer menu. With that done.. qgis will be ready to use otb without any further configuration.

  2. Linux/Unix
    This part was distribution specific for Linux and we decided not to check a list of possible install path for otb. That part should be handled by packagers. I will see if debian package is creating a qgis profile where I can add path to otb.

  3. OSX:
    I don't have a clean solution for osx to pre-configure otb provider. Maybe osgeo4mac guys can help us. [1]
    Add OTB6 support to QGIS OSGeo/homebrew-osgeo4mac#431

Suggestions welcome,

@qgib
Copy link
Contributor Author

qgib commented Feb 28, 2019

Author Name: Rashad Kanavath (@rkanavath)


It seems like debian package can update QGIS3.ini

$ grep OTB .local/share/QGIS/QGIS3/profiles/default/QGIS/QGIS3.ini
Configuration\OTB_ACTIVATE=true
Configuration\OTB_APP_FOLDER=/usr/lib/x86_64-linux-gnu/otb/applications
Configuration\OTB_FOLDER=/usr

@qgib
Copy link
Contributor Author

qgib commented Feb 28, 2019

Author Name: Paolo Cavallini (@pcav)


These seem good suggestions to me. Please check with packagers to find the best solution for each major OS.
Thanks a lot.

@qgib
Copy link
Contributor Author

qgib commented Mar 1, 2019

Author Name: Giovanni Manghi (@gioman)


  1. Windows:
    OTB was removed from OSGeo4W due to issues with geos and ossim.

out of curiosity... what issues?


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Mar 4, 2019

Author Name: Rashad Kanavath (@rkanavath)


out of curiosity... what issues?

Long story in bullet points :)

  • OTB depends on ossim library which uses geos and it use C++ version (works fine for otb and ossim)
  • OSSIM refuse to rewrite parts of geos c++ code used because ossim is also using c++ and don't care much on geos c api part.
  • OTB team was not able to catchup with all activies in ossim (not a very open source friendly dev process)
  • OSGeo4W remove geos c++ package even when contributed by otb team.
  • Due to overhead in maintaining ossim, geos-c++, itk, and using old msvc version, otb team has to back off from process

FWIW, OTB windows package (zip, no admin required) works fine and can be easily integrated into QGIS installer...

@qgib
Copy link
Contributor Author

qgib commented Mar 4, 2019

Author Name: Rashad Kanavath (@rkanavath)


OSGeo4Mac had told to update qgis3 customization to find otb.
OSGeo/homebrew-osgeo4mac#431 (comment)

@qgib
Copy link
Contributor Author

qgib commented Apr 24, 2019

Author Name: Jürgen Fischer (@jef-n)


Rashad Kanavath wrote:

FWIW, OTB windows package (zip, no admin required) works fine and can be easily integrated into QGIS installer...

The QGIS standalone installer is made from OSGeo4W packages.

@qgib qgib added Feedback Waiting on the submitter for answers Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms labels May 25, 2019
@alexbruy
Copy link
Contributor

Same as #23675?

@nyalldawson
Copy link
Collaborator

Closing due to lack of feedback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers Processing Relating to QGIS Processing framework or individual Processing algorithms
Projects
None yet
Development

No branches or pull requests

3 participants