Problem with Create classification dataset (from categorized spectral library) (3.9RC1)

Issue #731 resolved
Fabian Thiel created an issue

Collected library looks like this

Console command:
>>>qgis_process run enmapbox:enmapbox:CreateClassificationDatasetFromCategorizedSpectralLibrary --categorizedLibrary='point?crs=epsg:4326&uid={038b03bd-5f71-49ef-b0d0-8c6997cac7b1}' --categoryField='class' --field='profiles' --outputClassificationDataset='TEMPORARY_OUTPUT' 

Derive categories from selected field: [Category(value='forest', name='forest', color='#ca058f'), Category(value='urban', name='urban', color='#07f91e'), Category(value='water', name='water', color='#c6a1f6')]
Read data
Traceback (most recent call last):
File "C:\Users/thielf54/AppData/Roaming/QGIS/QGIS3\profiles\demo/python/plugins\enmapboxplugin\site-packages\typeguard\__init__.py", line 903, in wrapper
retval = func(*args, **kwargs)
File "C:\Users/thielf54/AppData/Roaming/QGIS/QGIS3\profiles\demo/python/plugins\enmapboxplugin\enmapboxprocessing\algorithm\prepareclassificationdatasetfromcategorizedlibraryalgorithm.py", line 138, in processAlgorithm
checkSampleShape(X, y, raise_=True)
File "C:\Users/thielf54/AppData/Roaming/QGIS/QGIS3\profiles\demo/python/plugins\enmapboxplugin\site-packages\typeguard\__init__.py", line 903, in wrapper
retval = func(*args, **kwargs)
File "C:\Users/thielf54/AppData/Roaming/QGIS/QGIS3\profiles\demo/python/plugins\enmapboxplugin\enmapboxprocessing\typing.py", line 108, in checkSampleShape
raise ValueError(f'X{list(X.shape)} and y{list(y.shape)} data not matching')
ValueError: X[0] and y[0, 1] data not matching

Execution failed after 0.02 seconds

Loading resulting layers
Algorithm 'Create classification dataset (from categorized spectral library)' finished

Comments (4)

  1. Log in to comment