Utilization Orfeo TB - QGIS - Earth Engine

Hi all,

Config : Windows 10, QGIS 3.16 hannover,

I am new to QGIS and Orfeo toolbox but I would like to use OTB to perform LSMS on Google Earth Engine map layer. I installed everything in this fashion. Orfeo Toolbox displays regularly in the Plugin window and otb functions are available in the left side processing toolbox. But with the Python console import otbApplication as otb returns

Traceback (most recent call last):
File “C:\PROGRA~1\QGIS3~1.16\apps\Python37\lib\code.py”, line 90, in runcode
exec(code, self.locals)
File “”, line 1, in
File “C:/Users/VArri/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ee_plugin_init_.py”, line 32, in wrapping_ee_import
module = builtin_import(name, *args, **kwargs)
File “C:/PROGRA~1/QGIS3~1.16/apps/qgis-ltr/./python\qgis\utils.py”, line 792, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ModuleNotFoundError: No module named ‘otbApplication’

And when I try to perform LSMS directly by clicking on the Processing Toolbox/ Segmentation/ LargeScaleMeanShift input and applying LSMS in the window to a RGB layer displaying normally Manhattan with default settings I have the following problem :

Version de QGIS : 3.16.4-Hannover

Révision du code : 654e76b3cb

Version de Qt : 5.11.2

Version de GDAL : 3.1.4

Version de GEOS : 3.8.1-CAPI-1.13.3

Version de Proj : Rel. 6.3.2, May 1st, 2020

Traitement de l’algorithme…

Démarrage de l’algorithme ‘LargeScaleMeanShift’…

Paramètres en entrée:

{ ‘in’ : ‘type=xyz&url=https://earthengine.googleapis.com/v1alpha/projects/earthengine-legacy/maps/84f1bf58fbcdcb79949268a4096fda23-5d55a9d84282fb191043b1e1a154518a/tiles/{z}/{x}/{y}’, ‘spatialr’ : 5, ‘ranger’ : 15, ‘minsize’ : 50, ‘tilesizex’ : 500, ‘tilesizey’ : 500, ‘mode’ : ‘vector’, ‘mode.vector.imfield’ : None, ‘mode.vector.out’ : ‘TEMPORARY_OUTPUT’, ‘cleanup’ : True, ‘outputpixeltype’ : 5 }

OTB currently support only gdal and ogr provider. Parameter ‘in’ uses ‘wms’ provider

L’exécution a échoué après 0.03 secondes

Chargement des couches de résultat

Algorithme ‘LargeScaleMeanShift’ terminé

Can anyone tell me where I am wrong ? The installation process is incorrect ?

Thanks in advance
VA

Hello,

It seems that you are trying to use a network based dataset (“type=xyz&url=https://earthengine.googleapis.com/v1alpha/projects/earthengine-legacy/maps/84f1bf58fbcdcb79949268a4096fda23-5d55a9d84282fb191043b1e1a154518a/tiles/{z}/{x}/{y}”), but this is not supported by OTB.

You should use a raster format supported by GDAL (geotiff, jp2, …).

Note that even if gdal supports network datasets via the virtual file systems, but OTB does not support this syntax.

Cédric