dzetsaka icon indicating copy to clipboard operation
dzetsaka copied to clipboard

QGIS 3

Open fresm opened this issue 7 years ago • 6 comments

Bonjour Nicolas,

is your tool compatible with QGIS 3?

fresm avatar Jan 16 '18 15:01 fresm

Hello, Not yet, but it is planned, i hope a few weeks max after Qgis 3 will be out.

nkarasiak avatar Jan 16 '18 16:01 nkarasiak

Dzetsaka for qgis 3 is now out. Feel free to try and leave me a feedback. Algorithms in the Processing toolbox are much more efficient now thanks to qgis 3.

nkarasiak avatar Mar 03 '18 09:03 nkarasiak

I'm getting several errors with qgis3 for osx. Gaussian model trains fine. but I cannot predict - It will not load the "model learned" from the training session. Is there a specific extension needed?

Running a Random Forest training I get the error Traceback (most recent call last): File "/Users/knussear/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/dzetsaka/processing/train.py", line 161, in processAlgorithm mainfunction.learnModel(INPUT_RASTER.source(),INPUT_LAYER.source(),INPUT_COLUMN[0],OUTPUT_MODEL,SPLIT_PERCENT,0,OUTPUT_MATRIX,SELECTED_ALGORITHM,feedback=feedback) File "/Users/knussear/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/dzetsaka/scripts/mainfunction.py", line 230, in init yp = model.predict(xt) UnboundLocalError: local variable 'model' referenced before assignment

Execution failed after 1.39 seconds

knussear avatar Apr 09 '18 04:04 knussear

Hello @knussear, did you test with the samples ? Tell me if it works with GMM algorithm when using the samples I gave you (https://github.com/lennepkade/dzetsaka/archive/docs.zip). I'll look closer anyway. When using GMM, you do not have to install a specific extension. Thanks.

nkarasiak avatar May 03 '18 07:05 nkarasiak

Hi Nicolas

I have a similar issue as mentioned above. when I run the random forest classifier I get the following:

An error has occurred while executing Python code:

RuntimeError: Unable to open E:/test/test.tif to obtain file list. Traceback (most recent call last): File "C:/Users/user/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\dzetsaka\dzetsaka.py", line 680, in runMagic temp.initPredict(inRaster,model,outRaster,inMask=inMask,confidenceMap=confidenceMap,confidenceMapPerClass=None,NODATA=NODATA,feedback='gui') File "C:/Users/user/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\dzetsaka\scripts\mainfunction.py", line 617, in initPredict predictedImage=self.predict_image(inRaster,outRaster,tree,inMask,confidenceMap,confidenceMapPerClass=confidenceMapPerClass,NODATA=NODATA,SCALE=[M,m],classifier=classifier,feedback=feedback,n_jobs=n_jobs) File "C:/Users/user/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\dzetsaka\scripts\mainfunction.py", line 719, in predict_image dst_ds = driver.Create(outRaster, nc,nl, 1, gdal.GDT_Byte) File "C:\PROGRA~1\QGIS3~1.2\apps\Python36\lib\site-packages\osgeo\gdal.py", line 1510, in Create return _gdal.Driver_Create(self, *args, **kwargs) RuntimeError: Unable to open E:/test/test.tif to obtain file list.

Python version: 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.1900 64 bit (AMD64)] QGIS version: 3.2.2-Bonn Bonn, 26842169e9

Python Path: C:/PROGRA~1/QGIS3~1.2/apps/qgis/./python C:/Users/user/AppData/Roaming/QGIS/QGIS3\profiles\default/python C:/Users/user/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins C:/PROGRA~1/QGIS3~1.2/apps/qgis/./python/plugins C:\Program Files\QGIS 3.2\bin\python36.zip C:\PROGRA~1\QGIS3~1.2\apps\Python36\DLLs C:\PROGRA~1\QGIS3~1.2\apps\Python36\lib C:\Program Files\QGIS 3.2\bin C:\PROGRA~1\QGIS3~1.2\apps\Python36 C:\PROGRA~1\QGIS3~1.2\apps\Python36\lib\site-packages C:\PROGRA~1\QGIS3~1.2\apps\Python36\lib\site-packages\win32 C:\PROGRA~1\QGIS3~1.2\apps\Python36\lib\site-packages\win32\lib C:\PROGRA~1\QGIS3~1.2\apps\Python36\lib\site-packages\Pythonwin C:/Users/user/AppData/Roaming/QGIS/QGIS3\profiles\default/python C:/Users/user/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin C:\Users\user\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\enmapboxplugin\site-packages C:\Users\user\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\enmapboxplugin\enmapbox C:/Users/user/Downloads/dzetsaka-docs/dzetsaka-docs/sample

I have used the GMM algorithm but want the RF algorithm to compare. I used the sample/demo map and train data you provided. I also created my own training vector as a trail. Please advise what I could be doing wrong?

thank you in advance for your help

spress04 avatar Sep 13 '18 08:09 spress04

The plugin is opening QGIS several times in an uncontrolled manner in MacOS Mojave. Until we open a project, QGIS keeps on opening replicas. After the plugin works fine. however, only GMM and K-means algorithms are working. Thanks in advance. Very nice and easy to use plugin.

Spartacus1 avatar Apr 14 '19 16:04 Spartacus1