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

Modifications of the OTB plugin for OTB 7.1 #35298

Merged
merged 2 commits into from Mar 24, 2020

Conversation

ctraizet
Copy link

Description

The OTB plugin is currently not compatible with OTB 7.1, see #35233, #35237 and the related issue on OTB gitlab.

This pull request updates the downloading link of OTB from version 7.0 in 7.1 in the docker file of QGIS, and fix the following issues :

  • As OTB now uses gdal 3 and PROJ 6, the environment variable PROJ_LIB must be set, like the GDAL_DATA and GEOTIFF_CSV variable (the latter is not used in 7.1.0 by the way). The solution is to modify the plugin so that this variable is set before calling otbApplicationLauncherCommandLine. This is done in getAuxiliaryDataDirectories from otbUtils.py. This function already set GDAL_DATA and GEOTIFF_CSV from otbenv.profile.

  • One of the test uses the Smoothing application in gaussian mode, which has been refactored in OTB 7.1. The input of the qgis test should be modified : otb_algorithm_tests.yaml:26 type.gaussian.radius: 4.0 -> type.gaussian.stdev: 4.0

Note that with this pull request the plugin is still compatible with older version of OTB. However the test would fail with OTB 7.0 because of the change in the Smoothing application input (see above).

@github-actions github-actions bot added this to the 3.14.0 milestone Mar 24, 2020
@nyalldawson nyalldawson reopened this Mar 24, 2020
@nyalldawson nyalldawson merged commit fb419b6 into qgis:master Mar 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants