otb issueshttps://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/-/issues2019-07-30T13:17:42Zhttps://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/-/issues/1951OTB Python API : problem with UpdateParameters() for TrainVectorClassifier app2019-07-30T13:17:42ZYannick TANGUYOTB Python API : problem with UpdateParameters() for TrainVectorClassifier app### Description
My python scripts use TrainVectorClassifier application : it cannot set up the *cfield* value (neither the features "feat") and fails.
It seems that the UpdateParameters() does not work properly for this application.
T...### Description
My python scripts use TrainVectorClassifier application : it cannot set up the *cfield* value (neither the features "feat") and fails.
It seems that the UpdateParameters() does not work properly for this application.
The other applications (Sample Selection, Sample Extraction, etc.) work fine.
### Steps to reproduce
Here are some simple commands to reproduce. My "samples" file contains an integer field "code".
`>>> app = otbApplication.Registry.CreateApplication("SampleExtraction")`
`>>> app.SetParameterString("in",image_stack)`
`>>> app.SetParameterString("vec",samples)`
`>>> app.UpdateParameters()`
`>>> app.GetChoiceKeys("field")`
('id', 'code', 'originfid')
`>>> app.SetParameterString("field","code") `
-> This works fine !!
`>>> app = otbApplication.Registry.CreateApplication("TrainVectorClassifier")`
`>>> app.SetParameterString("io.vd",samples)`
`>>> app.SetParameterString("io.out",rf_model)`
`>>> app.UpdateParameters()`
`>>> app.GetChoiceKeys()`
()
`>>> app.SetParameterString("cfield","code")`
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/otb/OTB/lib/python3/otbApplication.py", line 2530, in SetParameterString
return _otbApplication.Application_SetParameterString(self, parameter, value, hasUserValueFlag)
RuntimeError: Exception thrown in otbApplication Application_SetParameterString: /home/otbval/dashboard/otb/src/Modules/Wrappers/ApplicationEngine/src/otbWrapperListViewParameter.cxx:141:
itk::ERROR: ListViewParameter(0x556d1d854370): Cannot find code
### Configuration information
OTB 6.6.1 python 3 or develop version, with Python 3.https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/-/issues/1952Crash with the decision tree classifier in OpenCV 3.4.1 and K-fold cross-vali...2019-08-09T12:15:13ZCédric TraizetCrash with the decision tree classifier in OpenCV 3.4.1 and K-fold cross-validations > 1### Description
when training a decision tree classifier in OpenCV 3.4.1 and K-fold cross-validations > 1 (`classifier.dt.f > 1`), the application crash with the error message
```
2019-08-01 10:24:30 (FATAL) TrainVectorClassifier: Cau...### Description
when training a decision tree classifier in OpenCV 3.4.1 and K-fold cross-validations > 1 (`classifier.dt.f > 1`), the application crash with the error message
```
2019-08-01 10:24:30 (FATAL) TrainVectorClassifier: Caught std::exception during application execution: OpenCV(3.4.1) /Datas/Code/OTB/SuperBuild/OPENCV/build/modules/ml/precomp.hpp:157: error: (-213) tree pruning using cross-validation is not implemented.Set CVFolds to 1 in function setCVFolds
```
Apparently, this bug is already known and "fixed" when defining the `classifier.dt.f` parameter in `otbTrainDecisionTree.hxx:78`
``` cpp
//CVFolds
AddParameter(ParameterType_Int, "classifier.dt.f", "K-fold cross-validations");
#ifdef OTB_OPENCV_3
// disable cross validation by default (crash in opencv 3.2)
SetParameterInt("classifier.dt.f",0);
#else
SetParameterInt("classifier.dt.f",10);
#endif
SetParameterDescription("classifier.dt.f",
"If cv_folds > 1, then it prunes a tree with K-fold cross-validation where K "
"is equal to cv_folds.");
```
The default value of the parameter has been set to 0, so it doesn't crash if the parameter is not set, but maybe we should just remove the parameter when using open cv3 if it makes the application crash.
### Configuration information
Superbuild (opencv 3.4.1)7.0.0https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/-/issues/1953Release 7 planning2020-02-07T16:36:52ZVictor PoughonRelease 7 planningWe are ready to release OTB version 7.0.0. The following steps need to be done:
* [x] Wait for all isues marked 7.0.0 and feature to be merged
## Release candidate
### 1. Branches
* [x] **(if major or minor release)** Feature freeze:...We are ready to release OTB version 7.0.0. The following steps need to be done:
* [x] Wait for all isues marked 7.0.0 and feature to be merged
## Release candidate
### 1. Branches
* [x] **(if major or minor release)** Feature freeze: [create the new release branch](https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/wikis/Help-for-release-actions#create-release-branch)
* [x] Make sure the version number in `CMakeLists.txt` is MAJOR.MINOR.PATCH
### 2. Housekeeping
* [x] In this story, make a list of blocking issues for the release (if any)
* [x] #1969
* [x] #1930 (not blocking for the rc).
* [x] [Update the SuperBuild archive](https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/wikis/Help-for-release-actions#superbuild-archive). Note: waiting for the actual release to move the 6.6.1 archive
* [x] Update release notes (walk the GitLab MR merged history and log all improvements)
* [x] Update the date in RELEASE_NOTES.txt
* [x] Run Debian [spelling](https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/wikis/Help-for-release-actions#spelling-check) checker
* [x] Run shellcheck script from [OTB-Devutils/Scripts/](https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb-devutils/blob/master/Scripts/run_shellcheck.sh)
* [x] [Update translation](https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/wikis/Help-for-release-actions#translation-for-monteverdi-mapla) for Monteverdi and Mapla
* [x] [Sanity check the binary packages](https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/wikis/Help-for-release-actions#standalone-packages-sanity-check)
* [x] Windows
* [x] Linux
* [x] Mac , ok but #1930 has been reproduced.
### 3. Actual release
Once all blocking issues are closed, and the previous steps are done:
* [x] [Tag the release or RC](https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/wikis/Help-for-release-actions#release-tag) for the rc onldy otb tag has been create
* [x] Update GIT_TAG for all official remote modules (if needed)
### 4. Publish and plan next release
* [x] [Prepare and upload source packages](https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/wikis/Help-for-release-actions#prepare-and-upload-source-packages)
* [x] [Promote staging packages](https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/wikis/Help-for-release-actions#promote-staging-packages)
* [x] [Update documentation](https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/wikis/Help-for-release-actions#update-documentation)
* [x] Cookbook
* [x] Doxygen
* [x] Release announcement on the forum
* ~~Announcement on social networks (twitter, google+)~~
## Release
### 1. Branches
* [x] **(if major or minor release)** Feature freeze: [create the new release branch](https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/wikis/Help-for-release-actions#create-release-branch)
* [x] Make sure the version number in `CMakeLists.txt` is MAJOR.MINOR.PATCH
### 2. Housekeeping
* [x] In this story, make a list of blocking issues for the release (if any)
* [x] #1969
* [x] #1930 (not blocking for the rc).
* [x] [Update the SuperBuild archive](https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/wikis/Help-for-release-actions#superbuild-archive). Note: waiting for the actual release to move the 6.6.1 archive
* [x] Update release notes (walk the GitLab MR merged history and log all improvements)
* [x] Update the date in RELEASE_NOTES.txt
* [x] Run Debian [spelling](https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/wikis/Help-for-release-actions#spelling-check) checker
* [x] Run shellcheck script from [OTB-Devutils/Scripts/](https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb-devutils/blob/master/Scripts/run_shellcheck.sh)
* [x] [Update translation](https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/wikis/Help-for-release-actions#translation-for-monteverdi-mapla) for Monteverdi and Mapla
* [x] [Sanity check the binary packages](https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/wikis/Help-for-release-actions#standalone-packages-sanity-check)
* [x] Windows
* [x] Linux
* [x] Mac
### 3. Actual release
Once all blocking issues are closed, and the previous steps are done:
* [x] [Tag the release or RC](https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/wikis/Help-for-release-actions#release-tag) for the rc onldy otb tag has been create
* [x] Merge the release into develop
* [x] Merge the release into master
* [x] Update GIT_TAG for all official remote modules (if needed)
### 4. Publish and plan next release
* [x] [Prepare and upload source packages](https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/wikis/Help-for-release-actions#prepare-and-upload-source-packages)
* [x] [Promote staging packages](https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/wikis/Help-for-release-actions#promote-staging-packages)
* [x] [Update documentation](https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/wikis/Help-for-release-actions#update-documentation)
* [x] Cookbook
* [x] Doxygen
* [x] WordPress page "Home" and "Download" pages
* [x] Upload OTB source archive to [Zenodo](https://zenodo.org/) to create a unique Digital Object Identifier (DOI)
* [x] Release announcement on the forum
* [x] Release announcement on the blog
* [x] Announcement on social networks (twitter, google+)
* [x] Forward announcement to news_item@osgeo.org ([OSGeo news](https://www.osgeo.org/foundation-news/))
* ~~Plan the next release (nominate new release manager, setup PSC meeting on IRC)~~
* [x] Remove public branches related to MR or bugfix merged before the release7.0.0https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/-/issues/1954Support of OpenCV versions in OTB (v2, v3 and v4)2019-11-04T16:34:08ZCédric TraizetSupport of OpenCV versions in OTB (v2, v3 and v4)As of today, both OpenCV 2 and OpenCV 3 are supported in otb. The whole `ml` module is different in the two version, which is the module used in otb (in addition to the `core` module). In practice for each classifier two versions of the ...As of today, both OpenCV 2 and OpenCV 3 are supported in otb. The whole `ml` module is different in the two version, which is the module used in otb (in addition to the `core` module). In practice for each classifier two versions of the code is implemented, one for OpenCV 2 and one for OpenCV 3. This makes the code hard to maintain, and hard to test (a lot of tests need to have one baseline for each version).
As OpenCV2 has been around for some time, I think we can drop the support for OpenCV2
Also, OpenCV 4 has been releases (last version is OpenCV 4.1.1). For now, OTB doesn't compile with v4.1.1, but I don't this it should be hard to make it compatible, as there is no major API change (the main change is the switch to c++ 11).https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/-/issues/1955A .mailmap file is missing2019-10-08T09:24:42ZSébastien DinotA .mailmap file is missingMany contributors have set up their identity differently over time. Thus, OTB seems to have had 97 different contributors, but in reality, there were only 57. It would therefore be wise to add a `.mailmap` file in the root directory of t...Many contributors have set up their identity differently over time. Thus, OTB seems to have had 97 different contributors, but in reality, there were only 57. It would therefore be wise to add a `.mailmap` file in the root directory of the repository to better count and identify contributors.
Moreover, removing the ambiguity regarding the authors of the contributions would facilitate the subsequent and automated control of the signing of the CLA (contributor license agreement).
The last identity used by the contributor should be used as the reference identity in order to easily contact him if needed. As the identity permits to identify the author of a contribution, not its copyright holder, it doesn't matter if a contribution provided by "John Doe <john.doe@xxx.fr>" is later assigned to "John Doe <jdoe@yyy.eu>" in the log (as long as these two identities correspond to the same physical person).Sébastien DinotSébastien Dinothttps://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/-/issues/1956Fix rendering of opticalcalibration application documentation2019-10-08T09:24:22ZMickael SavinaudFix rendering of opticalcalibration application documentation### Target documentation resources
Cookbook
### Change requested
The list of parameters for TOA conversion is not well render due to a missing blank line in the text of the app description.### Target documentation resources
Cookbook
### Change requested
The list of parameters for TOA conversion is not well render due to a missing blank line in the text of the app description.https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/-/issues/1957COMP: Deprecated exception-specifications2019-10-07T08:11:34ZLuc HermitteCOMP: Deprecated exception-specificationsSeveral filters have exception-specifications (that have been deprecated with C++11, and removed from C++17).
At first, I though it was because ITK had them in `ImageToImageFilter`, and yet I found no trace of them. This [was a bad des...Several filters have exception-specifications (that have been deprecated with C++11, and removed from C++17).
At first, I though it was because ITK had them in `ImageToImageFilter`, and yet I found no trace of them. This [was a bad design choice](http://www.gotw.ca/gotw/082.htm), and [now a deprecated one](https://en.cppreference.com/w/cpp/language/except_spec), that should be fixed, and that needs to be fixed starting with C++17.
I found occurrences of `throw *(` in:
```
./Core/ObjectList/include/otbImageList.h: throw (itk::InvalidRequestedRegionError) override;
./Core/ObjectList/include/otbImageList.hxx:::PropagateRequestedRegion() throw (itk::InvalidRequestedRegionError)
./Feature/Edge/include/otbLineDetectorImageFilterBase.hxx:::GenerateInputRequestedRegion() throw (itk::InvalidRequestedRegionError)
./Feature/Edge/include/otbTouziEdgeDetectorImageFilter.hxx: TOutputImageDirection>::GenerateInputRequestedRegion() throw (
./Feature/Edge/include/otbPixelSuppressionByDirectionImageFilter.h: throw(itk::InvalidRequestedRegionError) override;
./Feature/Edge/include/otbTouziEdgeDetectorImageFilter.h: throw(itk::InvalidRequestedRegionError) override;
./Feature/Edge/include/otbPixelSuppressionByDirectionImageFilter.hxx:void PixelSuppressionByDirectionImageFilter<TInputImage, TOutputImage>::GenerateInputRequestedRegion() throw (
./Feature/Edge/include/otbLineDetectorImageFilterBase.h: throw(itk::InvalidRequestedRegionError) override;
./Registration/DisparityMap/include/otbDisparityMapMedianFilter.hxx:::GenerateInputRequestedRegion() throw (itk::InvalidRequestedRegionError)
./Registration/DisparityMap/include/otbDisparityMapMedianFilter.h: void GenerateInputRequestedRegion() throw(itk::InvalidRequestedRegionError) override;
./Visualization/MonteverdiCore/include/mvdAbstractWorker.h: void Do() throw();
./Visualization/MonteverdiCore/include/mvdSystemError.h: ~SystemError() throw() override {};
./Visualization/MonteverdiCore/src/mvdAbstractWorker.cxx:::Do() throw()
./Filtering/Statistics/include/otbVarianceImageFilter.hxx:::GenerateInputRequestedRegion() throw (itk::InvalidRequestedRegionError)
./Filtering/Statistics/include/otbVarianceImageFilter.h: throw(itk::InvalidRequestedRegionError) override;
./Filtering/ImageNoise/include/otbFrostImageFilter.h: throw(itk::InvalidRequestedRegionError) override;
./Filtering/ImageNoise/include/otbLeeImageFilter.h: throw(itk::InvalidRequestedRegionError) override;
./Filtering/ImageNoise/include/otbKuanImageFilter.hxx:void KuanImageFilter<TInputImage, TOutputImage>::GenerateInputRequestedRegion() throw (itk::InvalidRequestedRegionError)
./Filtering/ImageNoise/include/otbGammaMAPImageFilter.h: throw(itk::InvalidRequestedRegionError) override;
./Filtering/ImageNoise/include/otbFrostImageFilter.hxx:void FrostImageFilter<TInputImage, TOutputImage>::GenerateInputRequestedRegion() throw (
./Filtering/ImageNoise/include/otbGammaMAPImageFilter.hxx:void GammaMAPImageFilter<TInputImage, TOutputImage>::GenerateInputRequestedRegion() throw (itk::InvalidRequestedRegionError)
./Filtering/ImageNoise/include/otbKuanImageFilter.h: throw(itk::InvalidRequestedRegionError) override;
./Filtering/ImageNoise/include/otbLeeImageFilter.hxx:void LeeImageFilter<TInputImage, TOutputImage>::GenerateInputRequestedRegion() throw (itk::InvalidRequestedRegionError)
./Filtering/Convolution/include/otbConvolutionImageFilter.hxx:::GenerateInputRequestedRegion() throw (itk::InvalidRequestedRegionError)
./Filtering/Convolution/include/otbConvolutionImageFilter.h: throw(itk::InvalidRequestedRegionError) override;
./Filtering/Wavelet/include/otbWaveletFilterBank.h: throw (itk::InvalidRequestedRegionError) override;
./Filtering/Wavelet/include/otbWaveletFilterBank.h: throw (itk::InvalidRequestedRegionError) override;
./Filtering/Wavelet/include/otbWaveletFilterBank.hxx:throw (itk::InvalidRequestedRegionError)
./Filtering/Wavelet/include/otbWaveletFilterBank.hxx:throw (itk::InvalidRequestedRegionError)
./Learning/Markov/include/otbMarkovRandomFieldFilter.h: throw (itk::ExceptionObject);
./Learning/Markov/include/otbMarkovRandomFieldFilter.hxx:::Initialize() throw (itk::ExceptionObject)
```https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/-/issues/1959Non-compliant mentions of copyright2019-09-13T09:51:29ZSébastien DinotNon-compliant mentions of copyrightSome source files have no mention of copyright in their header and others have one that does not conform to the expected format (even though these files were created by an OTB contributor). These mistakes must be fixed and verified by th...Some source files have no mention of copyright in their header and others have one that does not conform to the expected format (even though these files were created by an OTB contributor). These mistakes must be fixed and verified by the continuous integration process to ensure that these headers are in compliance with project requirements.7.0.0Sébastien DinotSébastien Dinothttps://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/-/issues/1960No data support in FunctorImageFilter2019-12-17T11:56:08ZCédric TraizetNo data support in FunctorImageFilter`FunctorImageFilter` currently doesn't support no data handling, i.e. no data pixels are processed like regular pixels. It would be nice to have a method to set a no data value to the filter, and to check if pixels are no data before cal...`FunctorImageFilter` currently doesn't support no data handling, i.e. no data pixels are processed like regular pixels. It would be nice to have a method to set a no data value to the filter, and to check if pixels are no data before calling the functor.
This would add support for no data in a lot of otb applications.
However maybe the performance cost of checking no data for each pixel is too high, considering that `FunctorImageFilter` is supposed to be efficient. Maybe handling of no data should be left to the functor if needed, i.e. storing the no-data value in the functor and defining how no data should be handled in the `()` operator.
More generally, the question is to know if we want no-data support for pixel wise operations in otb, even if it has a cost when there is no no-data in the image. What do you think ?
Note: adding support for Nodata in `FunctorImageFilter` would require to define how no data pixels should be processed when using neighborhood.https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/-/issues/1961maximum kernel width and maximum error in the Smoothing app2020-02-12T10:19:23ZCédric Traizetmaximum kernel width and maximum error in the Smoothing appThe `Smoothing` application, in `gaussian` mode does not expose the `MaximumKernelWidth` (Maximum allowed kernel width for any dimension of the discrete Gaussian approximation) and the `MaximumError` (The maximum error of the gaussian bl...The `Smoothing` application, in `gaussian` mode does not expose the `MaximumKernelWidth` (Maximum allowed kernel width for any dimension of the discrete Gaussian approximation) and the `MaximumError` (The maximum error of the gaussian blurring kernel in each dimensional direction) of the `DisceteGaussianImageFilter` from ITK.
It would be a nice addition to add more control on gaussian filtering in otbCédric TraizetCédric Traizethttps://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/-/issues/1962ITK Linker error2019-10-08T09:14:01Zskn123ITK Linker errorFresh checkout from gitlab. ITK 5.x.
Getting this linker error; Looks like deprecated functions in ITK. Any way to resolve this?
https://discourse.itk.org/t/mutex-cleanup/1183
```
CMakeFiles/OTBMetadata.dir/otbImageMetadataInterfaceFa...Fresh checkout from gitlab. ITK 5.x.
Getting this linker error; Looks like deprecated functions in ITK. Any way to resolve this?
https://discourse.itk.org/t/mutex-cleanup/1183
```
CMakeFiles/OTBMetadata.dir/otbImageMetadataInterfaceFactory.cxx.o: In function `otb::ImageMetadataInterfaceFactory::RegisterBuiltInFactories()':
otbImageMetadataInterfaceFactory.cxx:(.text+0x6fa): undefined reference to `itk::SimpleMutexLock::Lock()'
otbImageMetadataInterfaceFactory.cxx:(.text+0x9d0): undefined reference to `itk::SimpleMutexLock::Unlock()'
otbImageMetadataInterfaceFactory.cxx:(.text+0x9f8): undefined reference to `itk::SimpleMutexLock::SimpleMutexLock()'
otbImageMetadataInterfaceFactory.cxx:(.text+0x9ff): undefined reference to `itk::SimpleMutexLock::~SimpleMutexLock()'
otbImageMetadataInterfaceFactory.cxx:(.text+0xb0d): undefined reference to `itk::SimpleMutexLock::Unlock()'
CMakeFiles/OTBMetadata.dir/otbOpticalImageMetadataInterfaceFactory.cxx.o: In function `otb::OpticalImageMetadataInterfaceFactory::RegisterBuiltInFactories()':
otbOpticalImageMetadataInterfaceFactory.cxx:(.text+0x4ba): undefined reference to `itk::SimpleMutexLock::Lock()'
otbOpticalImageMetadataInterfaceFactory.cxx:(.text+0x694): undefined reference to `itk::SimpleMutexLock::Unlock()'
otbOpticalImageMetadataInterfaceFactory.cxx:(.text+0x6bc): undefined reference to `itk::SimpleMutexLock::SimpleMutexLock()'
otbOpticalImageMetadataInterfaceFactory.cxx:(.text+0x6c3): undefined reference to `itk::SimpleMutexLock::~SimpleMutexLock()'
otbOpticalImageMetadataInterfaceFactory.cxx:(.text+0x784): undefined reference to `itk::SimpleMutexLock::Unlock()'
CMakeFiles/OTBMetadata.dir/otbSarImageMetadataInterfaceFactory.cxx.o: In function `otb::SarImageMetadataInterfaceFactory::RegisterBuiltInFactories()':
otbSarImageMetadataInterfaceFactory.cxx:(.text+0x4ba): undefined reference to `itk::SimpleMutexLock::Lock()'
otbSarImageMetadataInterfaceFactory.cxx:(.text+0x5d7): undefined reference to `itk::SimpleMutexLock::Unlock()'
otbSarImageMetadataInterfaceFactory.cxx:(.text+0x5ff): undefined reference to `itk::SimpleMutexLock::SimpleMutexLock()'
otbSarImageMetadataInterfaceFactory.cxx:(.text+0x606): undefined reference to `itk::SimpleMutexLock::~SimpleMutexLock()'
otbSarImageMetadataInterfaceFactory.cxx:(.text+0x69d): undefined reference to `itk::SimpleMutexLock::Unlock()'
''https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/-/issues/1963StreamingWarpImageFilter may create empty requested region that triggers upst...2019-12-13T12:53:44ZJulien MichelStreamingWarpImageFilter may create empty requested region that triggers upstream exceptions### Description
In `StreamingWarpImageFilter` if the deformation field maps the output requested region to a region completely outside of the input largest possible region, an empty requested region is generated and forwarded upstream. ...### Description
In `StreamingWarpImageFilter` if the deformation field maps the output requested region to a region completely outside of the input largest possible region, an empty requested region is generated and forwarded upstream. Some filters will raise an exception when receiving such an empty requested region.
An attempt to fix this has been proposed in !583 but reverted because it broke streaming on other cases.
### Steps to reproduce
I will try to propose a test that reproduces the problem.7.0.0https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/-/issues/1964stop in cmake configure if we knew it can't be compiled2019-10-22T06:36:26ZRashad Kanavathstop in cmake configure if we knew it can't be compiled### Description
OTB and SuperBuild continues to build with an unsupported gcc/clang compiler and crash later.
There is a "[cmake warning](https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/blob/develop/CMakeLists.txt#L44)" printed on co...### Description
OTB and SuperBuild continues to build with an unsupported gcc/clang compiler and crash later.
There is a "[cmake warning](https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/blob/develop/CMakeLists.txt#L44)" printed on console but ain't right.
This Must be changed to "FATAL_ERROR" rather than "STATUS" ? The current code is simply wasting my screen real estate!
Also same thing in case of SuperBuild cmake configure (unsupported compiler should be out).
And..
If there is a special case where message type cannot be changed to FATAL_ERROR, that is debatable
### Steps to reproduce
Install centos7 on empty partition
Boot into and build OTB with default gcc
### Configuration information
LinuxCédric TraizetCédric Traizethttps://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/-/issues/1965Function opticalcalibration executed but did not generate any output2022-01-06T15:02:19ZBastienMacFunction opticalcalibration executed but did not generate any outputHi,
I work with OTB 6.6.1 in python3, on **CentOs 7**, to do some pre-processing on Pleiades image. I'm a very beginner.
When I do
```
# Set all the application parameters:
self.opticalcalibration.SetParameterString("in", input_image...Hi,
I work with OTB 6.6.1 in python3, on **CentOs 7**, to do some pre-processing on Pleiades image. I'm a very beginner.
When I do
```
# Set all the application parameters:
self.opticalcalibration.SetParameterString("in", input_image)
self.opticalcalibration.SetParameterString("level","toa")
self.opticalcalibration.SetParameterString("acqui.gainbias", gainbias_file)
self.opticalcalibration.SetParameterString("acqui.solarilluminations",solarilluminations_file)
self.opticalcalibration.SetParameterString("out", output_image)
# Execute the application
self.opticalcalibration.ExecuteAndWriteOutput()
```
The function seems to do the job but does not provide any output. Above there is the trace in my console:
```
--- Correction --- # Here I'm just using OTB BandMath and ConcatenateImages function to merge B1, B2, B3, B4 in 1 xs
input pan: /.../input_pan.tif
input xs : /.../input_xs.tif
output : /.../corrected_pan.tif
output : /.../corrected_xs_B1.tif
output : /.../corrected_xs_B2.tif
output : /.../corrected_xs_B3.tif
output : /.../corrected_xs_B4.tif
2019-09-13 15:43:55 (INFO): No kwl metadata found in file /.../input_pan.tif
2019-09-13 15:43:55 (INFO): Estimated memory for full processing: 76.2558MB (avail.: 128 MB), optimal image partitioning: 1 blocks
2019-09-13 15:43:55 (INFO): File /.../corrected_pan.tif will be written in 1 blocks of 2000x2000 pixels
2019-09-13 15:43:55 (INFO): No kwl metadata found in file /.../input_xs.tif
2019-09-13 15:43:55 (INFO): Estimated memory for full processing: 167.809MB (avail.: 128 MB), optimal image partitioning: 2 blocks
2019-09-13 15:43:55 (INFO): File /.../corrected_xs_B1.tif will be written in 3 blocks of 2000x667 pixels
2019-09-13 15:43:56 (INFO): No kwl metadata found in file /.../input_xs.tif
2019-09-13 15:43:56 (INFO): Estimated memory for full processing: 167.809MB (avail.: 128 MB), optimal image partitioning: 2 blocks
2019-09-13 15:43:56 (INFO): File /.../corrected_xs_B2.tif will be written in 3 blocks of 2000x667 pixels
2019-09-13 15:43:56 (INFO): No kwl metadata found in file /.../input_xs.tif
2019-09-13 15:43:56 (INFO): Estimated memory for full processing: 167.809MB (avail.: 128 MB), optimal image partitioning: 2 blocks
2019-09-13 15:43:56 (INFO): File /.../corrected_xs_B3.tif will be written in 3 blocks of 2000x667 pixels
2019-09-13 15:43:56 (INFO): No kwl metadata found in file /.../input_xs.tif
2019-09-13 15:43:56 (INFO): Estimated memory for full processing: 167.809MB (avail.: 128 MB), optimal image partitioning: 2 blocks
2019-09-13 15:43:56 (INFO): File /.../corrected_xs_B4.tif will be written in 3 blocks of 2000x667 pixels
2019-09-13 15:43:56 (INFO): No kwl metadata found in file /.../corrected_xs_B1.tif
2019-09-13 15:43:56 (INFO): No kwl metadata found in file /.../corrected_xs_B2.tif
2019-09-13 15:43:56 (INFO): No kwl metadata found in file /.../corrected_xs_B3.tif
2019-09-13 15:43:56 (INFO): No kwl metadata found in file /.../corrected_xs_B4.tif
2019-09-13 15:43:56 (INFO): Estimated memory for full processing: 305.023MB (avail.: 128 MB), optimal image partitioning: 3 blocks
2019-09-13 15:43:56 (INFO): File /.../corrected_xs.tif will be written in 4 blocks of 2000x501 pixels
--- Calibration Pan ---
input : /.../corrected_pan.tif
output : /.../optical_calibration_pan.tif
--- Calibration XS ---
input : /.../corrected_xs.tif
output : /.../optical_calibration_xs.tif
--- Fusion ---
input : /.../optical_calibration_pan.tif
input : /.../optical_calibration_xs.tif
output : /.../fusion.tif
Traceback (most recent call last):
File "main_all_step.py", line 79, in <module>
...
File "/usr/local/lib/otb/python/otbApplication.py", line 2526, in ExecuteAndWriteOutput
return _otbApplication.Application_ExecuteAndWriteOutput(self)
RuntimeError: Cannot open image /...t/optical_calibration_xs.tif. The file does not exist.
```
When I look at my data :
* input_pan.tif is extracted from a bigger image .jp2 using OTB extractROI (standard) function
* input_xs.tif is extracted from a bigger image .jp2 using OTB extractROI (fit on the pan extracted) function
* corrected_pan.tif seems to be well generated
* corrected_xs.tif seems to be well generated
What I understand : BandMath and ConcatenateImage are doing the job, opticalcalibration does the job but don't save the result. --> Why ?
I tryed the same code on **Windows** with OTB 6.6.1. This time this part is working well but it fails at the step corresponding to the OTB OrthoRectification function with following error :
```
Exception thrown in otbApplication Application_ExecuteAndWriteOutput: c:\dashboard\otb\src\modules\core\transform\include\otbImageToGenericRSOutputParameters.txx:54:
itk::ERROR: ImageToGenericRSOutputParameters(000001AEDE62B560): No information in the metadata, please set an image with non empty metadata
```
Does the step opticalcalibration on **CentOs 7** also fails because there are no metadata setted ? If yes how can I set the metadata to avoid this ?
Thanks for helphttps://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/-/issues/1966Compiling Test GDAL_VERSION - Failed2019-10-08T08:53:57ZkishoreCompiling Test GDAL_VERSION - FailedHi All,
I'm trying to build OTB with cmake and I'm seeing the below error. Any suggestions on how to proceed are appreciated.
![image](/uploads/35cdbe9b4fed0dbe67355f6c99b77434/image.png)
Cmake version : 3.14.6
I tried to browse and f...Hi All,
I'm trying to build OTB with cmake and I'm seeing the below error. Any suggestions on how to proceed are appreciated.
![image](/uploads/35cdbe9b4fed0dbe67355f6c99b77434/image.png)
Cmake version : 3.14.6
I tried to browse and follow few solutions I found here , one of which is
https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/merge_requests/500
which says to add `-std=c++14`.under the definitions but no luck.
https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/-/issues/1968Build error to find randr2019-09-23T13:00:01ZbmaBuild error to find randrHello,
I’m trying to compile OTB 6.6.1 in a centos7 docker using the SuperBuild with cmake3 version 3.14.6 and gcc (GCC) 5.5.0.
When it is time to download and compile GLFW I have a problem with the randr lib. I’m getting the following ...Hello,
I’m trying to compile OTB 6.6.1 in a centos7 docker using the SuperBuild with cmake3 version 3.14.6 and gcc (GCC) 5.5.0.
When it is time to download and compile GLFW I have a problem with the randr lib. I’m getting the following error (from `cat /install/OTB/build/GLFW/src/GLFW-stamp/GLFW-configure-err.log`
`) :
```
CMake Deprecation Warning at CMakeLists.txt:8 (cmake_policy):
The OLD behavior for policy CMP0042 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
CMake Warning (dev) at /usr/share/cmake3/Modules/FindOpenGL.cmake:275 (message):
Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
available. Run "cmake --help-policy CMP0072" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
FindOpenGL found both a legacy GL library:
OPENGL_gl_LIBRARY: /usr/lib64/libGL.so
and GLVND libraries for OpenGL and GLX:
OPENGL_opengl_LIBRARY: /usr/lib64/libOpenGL.so
OPENGL_glx_LIBRARY: /usr/lib64/libGLX.so
OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
compatibility with CMake 3.10 and below the legacy GL library will be used.
Call Stack (most recent call first):
CMakeLists.txt:88 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Error at CMakeLists.txt:269 (message):
The RandR library and headers were not found
```
• I tried to install the following libs but didn’t worked
yum -y install mesa-libGL mesa-libGL-devel nx-proto-devel libXrandr xorg-x11-server-source
• I check if the lib were well installed with `locate randr` and I got the following (my $LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/usr/local/lib64:/usr/lib64):
```
/usr/include/X11/extensions/randr.h
/usr/include/X11/extensions/randrproto.h
/usr/include/nx-X11/extensions/randr.h
/usr/include/nx-X11/extensions/randrproto.h
/usr/include/xcb/randr.h
/usr/lib64/libXrandr.so.2
/usr/lib64/libXrandr.so.2.2.0
/usr/lib64/libxcb-randr.so
/usr/lib64/libxcb-randr.so.0
/usr/lib64/libxcb-randr.so.0.1.0
/usr/lib64/girepository-1.0/xrandr-1.3.typelib
/usr/lib64/pkgconfig/xcb-randr.pc
/usr/share/pkgconfig/randrproto.pc
/usr/share/xorg-x11-server-source/randr
/usr/share/xorg-x11-server-source/hw/xwin/winrandr.c
/usr/share/xorg-x11-server-source/randr/Makefile.am
/usr/share/xorg-x11-server-source/randr/randr.c
/usr/share/xorg-x11-server-source/randr/randrstr.h
/usr/share/xorg-x11-server-source/randr/rrcrtc.c
/usr/share/xorg-x11-server-source/randr/rrdispatch.c
/usr/share/xorg-x11-server-source/randr/rrinfo.c
/usr/share/xorg-x11-server-source/randr/rrlease.c
/usr/share/xorg-x11-server-source/randr/rrmode.c
/usr/share/xorg-x11-server-source/randr/rrmonitor.c
/usr/share/xorg-x11-server-source/randr/rroutput.c
/usr/share/xorg-x11-server-source/randr/rrpointer.c
/usr/share/xorg-x11-server-source/randr/rrproperty.c
/usr/share/xorg-x11-server-source/randr/rrprovider.c
/usr/share/xorg-x11-server-source/randr/rrproviderproperty.c
/usr/share/xorg-x11-server-source/randr/rrscreen.c
/usr/share/xorg-x11-server-source/randr/rrsdispatch.c
/usr/share/xorg-x11-server-source/randr/rrtransform.c
/usr/share/xorg-x11-server-source/randr/rrtransform.h
/usr/share/xorg-x11-server-source/randr/rrxinerama.c
```
• I tried to create the file /usr/lib64/pkgconfig/xrandr.pc with the following content :
```
prefix=/usr
libdir=/usr/lib64
includedir=/usr/include/nx-X11/extensions
Name: Xrandr
Description: X RandR Library
Version: 1.5.1
Requires: xproto randrproto >= 1.5
Requires.private: x11 xext xrender
Cflags: -I${includedir}
Libs: -L${libdir} -lXrandr
```
• I tryed to compile with cmake 3.11 and 3.3 but I don't know why curl had problem using the https protocol
• I tried to add `cmake_policy(SET CMP0072 NEW)` in the root and superbuild CMakeList.txt, the error at the beginning comes from this try. ButI saw it was useless as /install/OTB/build/GLFW/src/GLFW/CMakeLists.txt (generated file) does a `cmake_policy(SET CMP0042 NEW)`
• I wasn’t able to find a “FindPackage” for randr. But in the file /install/OTB/otb/Packaging/PackageGlobals.cmake “libXrandr.so*” is added to SYSTEM_DLLS. The list is then process by `setif_value_in_list(is_system "${result}" SYSTEM_DLLS)` but I don’t know what happen after…
Can someone help me with this? Does it come from cmake version ? I still need more header ? As I said I'm in a docker container based on CentOs 7 image.
Step I followed :
```
wget https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/-/archive/6.6.1/otb-6.6.1.tar.gz
tar xvf otb-6.6.1.tar.gz
mv otb-6.6.1 $OTB_SOURCE # /install/OTB/otb
mkdir -p $OTB_BUILD # /install/OTB/build
mkdir -p $OTB_INSTALL # /install/OTB/install
cd $OTB_BUILD
cmake -DCMAKE_INSTALL_PREFIX=$OTB_INSTALL -DOTB_USE_QT=OFF $OTB_SOURCE/SuperBuild
cd $OTB_BUILD
make
```
Thanks for help
PS :
I've also been in error for libkml and qt module. The filed download (http://ftp.de.debian.org/debian/pool/main/libk/libkml/libkml_1.3.0~r864+dfsg.orig.tar.gz and http://download.qt.io/official_releases/qt/5.12/5.12.1/single/qt-everywhere-src-5.12.1.tar.xz) are not available anymore.
To correct this I did
```
sed -i '/211ed5fdf2dd45aeb9c0abc8e1fe42be/d' $OTB_SOURCE/SuperBuild/CMake/External_libkml.cmake #delete the line
# Replace libkml_1.3.0~r863.orig.tar.gz by libkml_1.3.0~r864+dfsg.orig.tar.gz in $OTB_SOURCE/SuperBuild/CMake/External_libkml.cmake
sed -i 's/libkml_1.3.0~r863.orig.tar.gz/libkml_1.3.0~r864+dfsg.orig.tar.gz/g' $OTB_SOURCE/SuperBuild/CMake/External_libkml.cmake
sed -i '/7e167b9617e7bd64012daaacb85477af/d' $OTB_SOURCE/SuperBuild/CMake/External_qt5.cmake # delete the line
#Replace 5.10/5.10.1/single/qt-everywhere-src-5.10.1.tar.xz by 5.12/5.12.1/single/qt-everywhere-src-5.12.1.tar.xz in $OTB_SOURCE/SuperBuild/CMake/External_qt5.cmake
sed -i 's/5.10\/5.10.1\/single\/qt-everywhere-src-5.10.1.tar.xz/5.12\/5.12.1\/single\/qt-everywhere-src-5.12.1.tar.xz/g' $OTB_SOURCE/SuperBuild/CMake/External_qt5.cmake
```
Is it the good way to do ? I didn't reach these steps again so I don't know
https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/-/issues/1969Develop is broken2020-02-07T16:27:34ZCédric TraizetDevelop is brokenThe following jobs are failing on CI with the develop branch:
- centos-xdk-build
- ubuntu-xdk-build-doc
- ubuntu-xdk-qa-code-coverage
See pipeline 2684 (https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/pipelines/2684)
I triggered thi...The following jobs are failing on CI with the develop branch:
- centos-xdk-build
- ubuntu-xdk-build-doc
- ubuntu-xdk-qa-code-coverage
See pipeline 2684 (https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/pipelines/2684)
I triggered this pipeline manually, because the CI of the branch release-7.0 were failing (created from develop), even with almost no changes (update OTB version, update release notes)
The previous develop pipeline https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/pipelines/2672 (triggered by the merge of !596) was successful, and there has been no change since.7.0.0https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/-/issues/1970gcc version/linkage fails with SHARK module and boost2019-12-03T09:56:15Zbmagcc version/linkage fails with SHARK module and boostHello,
I’m trying to compile OTB 6.6.1 in a centos7 docker using the SuperBuild with cmake3 version 3.14.6 and default gcc/++ (4.8).
SuperBuild well installed all the dependency. But when it started to compile the otb code itself I got ...Hello,
I’m trying to compile OTB 6.6.1 in a centos7 docker using the SuperBuild with cmake3 version 3.14.6 and default gcc/++ (4.8).
SuperBuild well installed all the dependency. But when it started to compile the otb code itself I got lot of errors as the following.
```
/install/OTB/otb/Modules/Learning/Sampling/src/otbSampleAugmentationFilter.cxx: In member function 'otb::ogr::Feature otb::SampleAugmentationFilter::SelectTemplateFeature(const otb::ogr::Layer&, const string&, int)':
/install/OTB/otb/Modules/Learning/Sampling/src/otbSampleAugmentationFilter.cxx:260:36: error: parameter declared 'auto'
[&](auto& featureIt)
^
/install/OTB/otb/Modules/Learning/Sampling/src/otbSampleAugmentationFilter.cxx: In lambda function:
/install/OTB/otb/Modules/Learning/Sampling/src/otbSampleAugmentationFilter.cxx:262:35: error: 'featureIt' was not declared in this scope
return featureIt.ogr().GetFieldAsInteger(classField.c_str()) ==
^
In file included from /usr/include/c++/4.8.2/algorithm:62:0,
from /install/OTB/install/include/ITK-4.13/itkProcessObject.h:39,
from /install/OTB/otb/Modules/Learning/Sampling/include/otbSampleAugmentationFilter.h:24,
from /install/OTB/otb/Modules/Learning/Sampling/src/otbSampleAugmentationFilter.cxx:21:
/usr/include/c++/4.8.2/bits/stl_algo.h: In instantiation of '_InputIterator std::__find_if(_InputIterator, _InputIterator, _Predicate, std::input_iterator_tag) [with _InputIterator = otb::ogr::Layer::feature_iter<const otb::ogr::Feature>; _Predicate = otb::SampleAugmentationFilter::SelectTemplateFeature(const otb::ogr::Layer&, const string&, int)::__lambda0]':
/usr/include/c++/4.8.2/bits/stl_algo.h:4465:41: required from '_IIter std::find_if(_IIter, _IIter, _Predicate) [with _IIter = otb::ogr::Layer::feature_iter<const otb::ogr::Feature>; _Predicate = otb::SampleAugmentationFilter::SelectTemplateFeature(const otb::ogr::Layer&, const string&, int)::__lambda0]'
/install/OTB/otb/Modules/Learning/Sampling/src/otbSampleAugmentationFilter.cxx:264:27: required from here
/usr/include/c++/4.8.2/bits/stl_algo.h:150:56: error: no match for call to '(otb::SampleAugmentationFilter::SelectTemplateFeature(const otb::ogr::Layer&, const string&, int)::__lambda0) (const otb::ogr::Feature&)'
while (__first != __last && !bool(__pred(*__first)))
^
/install/OTB/otb/Modules/Learning/Sampling/src/otbSampleAugmentationFilter.cxx:260:28: note: candidate is:
[&](auto& featureIt)
^
/install/OTB/otb/Modules/Learning/Sampling/src/otbSampleAugmentationFilter.cxx:260:45: note: otb::SampleAugmentationFilter::SelectTemplateFeature(const otb::ogr::Layer&, const string&, int)::__lambda0
[&](auto& featureIt)
^
/install/OTB/otb/Modules/Learning/Sampling/src/otbSampleAugmentationFilter.cxx:260:45: note: candidate expects 0 arguments, 1 provided
make[5]: *** [Modules/Learning/Sampling/src/CMakeFiles/OTBSampling.dir/otbSampleAugmentationFilter.cxx.o] Error 1
```
I though it came from the gcc/++ version/linkage so I try a new version (gcc 5.5, 6.3, 7.3). But I got the following errors for SHARK->BOOST module. This seems to be also because of the gcc version/linkage, but for another gcc version. Like if only gcc 4.8 was fine for SHARK->BOOST. By the way the boost version is the one generated by superbuild. I did not change it as I don't know the impact on the whole code.
```
/install/OTB/install/lib/libboost_serialization.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCXX_3.4.21'
/install/OTB/install/lib/libboost_serialization.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::reserve(unsigned long)@GLIBCXX_3.4.21'
/install/OTB/install/lib/libboost_serialization.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_mutate(unsigned long, unsigned long, wchar_t const*, unsigned long)@GLIBCXX_3.4.21'
/install/OTB/install/lib/libboost_serialization.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::resize(unsigned long, char)@GLIBCXX_3.4.21'
/install/OTB/install/lib/libboost_serialization.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::resize(unsigned long, wchar_t)@GLIBCXX_3.4.21'
/install/OTB/install/lib/libboost_serialization.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)@GLIBCXX_3.4.21'
/install/OTB/install/lib/libboost_serialization.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::compare(char const*) const@GLIBCXX_3.4.21'
/install/OTB/install/lib/libboost_serialization.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_mutate(unsigned long, unsigned long, char const*, unsigned long)@GLIBCXX_3.4.21'
/install/OTB/install/lib/libboost_serialization.so: undefined reference to `operator delete(void*, unsigned long)@CXXABI_1.3.9'
/install/OTB/install/lib/libboost_serialization.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned long, unsigned long, char const*, unsigned long)@GLIBCXX_3.4.21'
```
What I did…
• To install gcc 4.8 I used `yum install gcc gcc-c++` and when I tried newer version I did as above:
```
yum -y install wget tar bzip2
yum -y install make gcc gcc-c++
wget http://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-6.3.0/gcc-6.3.0.tar.gz
tar xvf gcc-6.3.0.tar.gz
cd gcc-6.3.0
./contrib/download_prerequisites
./configure --disable-multilib --enable-languages=c,c++
make -j8
make -j8 install
yum -y remove gcc gcc-c++
yum -y remove make
yum -y remove bzip2
yum -y remove wget
rm -f $GCC_HOME/gcc-6.3.0.tar.gz
```
• To install otb 6.6.1 I did as above:
```
yum -y install wget tar make patch
yum -y install libXrandr libXrandr-devel libXinerama libXinerama-devel libXcursor libXcursor-devel
yum -y install mesa-libGLU mesa-libGLU-devel
yum -y install perl swig
yum -y install gcc gcc-c++ # if working with gcc 4.8
yum -y install epel-release cmake3
export LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/usr/local/lib64:/usr/lib64
echo "$LD_LIBRARY_PATH" >> /etc/profile.d/cmake3.sh
# To find XInput.h
if [ ! -f "/usr/include/X11/extensions/XInput.h" ] && [ -f /usr/include/X11/extensions/XI.h ]
then
ln -s /usr/include/X11/extensions/XI.h /usr/include/X11/extensions/XInput.h
fi
wget https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/-/archive/6.6.1/otb-6.6.1.tar.gz
tar xvf otb-6.6.1.tar.gz
mv otb-6.6.1 $OTB_SOURCE
mkdir $OTB_BUILD
mkdir $OTB_INSTALL
# some file are not available anymore, replace them
sed -i '/211ed5fdf2dd45aeb9c0abc8e1fe42be/d' $OTB_SOURCE/SuperBuild/CMake/External_libkml.cmake
sed -i 's/libkml_1.3.0~r863.orig.tar.gz/libkml_1.3.0~r864+dfsg.orig.tar.gz/g' $OTB_SOURCE/SuperBuild/CMake/External_libkml.cmake
sed -i '/7e167b9617e7bd64012daaacb85477af/d' $OTB_SOURCE/SuperBuild/CMake/External_qt5.cmake
sed -i '/skip qtwebglplugin/d' $OTB_SOURCE/SuperBuild/CMake/External_qt5.cmake
sed -i 's/5.10\/5.10.1\/single\/qt-everywhere-src-5.10.1.tar.xz/5.9\/5.9.1\/single\/qt-everywhere-opensource-src-5.9.1.tar.xz/g' $OTB_SOURCE/SuperBuild/CMake/External_qt5.cmake
cd $OTB_BUILD
cmake3 -DCMAKE_INSTALL_PREFIX=$OTB_INSTALL -DOTB_USE_QT=OFF $OTB_SOURCE/SuperBuild
cd $OTB_BUILD
make -j8
```
It looks like the gcc version can’t be compatible with SHARK and OTB itself at the same time... Any idea about how to solve it?
Thankshttps://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/-/issues/1971double precision parameters input in applications2020-06-02T15:45:44ZEsquis Benjamindouble precision parameters input in applicationsFor now only float parameters can be put in applications.
However for some purpose the double precision could be requested.For now only float parameters can be put in applications.
However for some purpose the double precision could be requested.guillaume pernotguillaume pernothttps://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/-/issues/1973DownloadSRTMTiles application is broken again2019-09-30T14:26:44ZJulien MichelDownloadSRTMTiles application is broken again### Description
[Hard-coded url](https://dds.cr.usgs.gov/srtm/version2_1/SRTM3/) from service seems to lead to 404 error.
See: https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/blob/develop/Modules/Applications/AppImageUtils/app/otbDow...### Description
[Hard-coded url](https://dds.cr.usgs.gov/srtm/version2_1/SRTM3/) from service seems to lead to 404 error.
See: https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/blob/develop/Modules/Applications/AppImageUtils/app/otbDownloadSRTMTiles.cxx#L39
I do not know any replacement url we could use ...
### Steps to reproduce
```bash
$ otbcli_DownloadSRTMTiles -il left.tif -tiledir test_download
2019-09-30 14:04:59 (INFO) DownloadSRTMTiles: Default RAM limit for OTB is 256 MB
2019-09-30 14:04:59 (INFO) DownloadSRTMTiles: GDAL maximum cache size is 19313 MB
2019-09-30 14:04:59 (INFO) DownloadSRTMTiles: OTB will use at most 80 threads
2019-09-30 14:04:59 (INFO): Loading kwl metadata from attached geom file left.geom
2019-09-30 14:04:59 (INFO) DownloadSRTMTiles: Total candidate tiles: 1
2019-09-30 14:04:59 (INFO) DownloadSRTMTiles: --> 0 missing tiles in SRTM (coverage ratio is 100%)
2019-09-30 14:04:59 (INFO) DownloadSRTMTiles: --> 0 tiles already in the directory
2019-09-30 14:04:59 (INFO) DownloadSRTMTiles: --> 1 tiles to download
2019-09-30 14:04:59 (INFO) DownloadSRTMTiles: Downloading tile N44E005 ...
2019-09-30 14:05:00 (WARNING) DownloadSRTMTiles: Can't access tile : https://dds.cr.usgs.gov/srtm/version2_1/SRTM3/Eurasia/N44E005.hgt.zip
```7.0.0