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

QGIS 3 #8

Open
fresm opened this Issue Jan 16, 2018 · 5 comments

Comments

Projects
None yet
4 participants
@fresm

fresm commented Jan 16, 2018

Bonjour Nicolas,

is your tool compatible with QGIS 3?

@lennepkade

This comment has been minimized.

Owner

lennepkade commented Jan 16, 2018

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

@lennepkade

This comment has been minimized.

Owner

lennepkade commented Mar 3, 2018

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.

@lennepkade lennepkade closed this Mar 20, 2018

@knussear

This comment has been minimized.

knussear commented Apr 9, 2018

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

@lennepkade lennepkade reopened this Apr 10, 2018

@lennepkade

This comment has been minimized.

Owner

lennepkade commented May 3, 2018

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.

@spress04

This comment has been minimized.

spress04 commented Sep 13, 2018

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:\PROGRA1\QGIS31.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:/PROGRA1/QGIS31.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:/PROGRA1/QGIS31.2/apps/qgis/./python/plugins
C:\Program Files\QGIS 3.2\bin\python36.zip
C:\PROGRA1\QGIS31.2\apps\Python36\DLLs
C:\PROGRA1\QGIS31.2\apps\Python36\lib
C:\Program Files\QGIS 3.2\bin
C:\PROGRA1\QGIS31.2\apps\Python36
C:\PROGRA1\QGIS31.2\apps\Python36\lib\site-packages
C:\PROGRA1\QGIS31.2\apps\Python36\lib\site-packages\win32
C:\PROGRA1\QGIS31.2\apps\Python36\lib\site-packages\win32\lib
C:\PROGRA1\QGIS31.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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment