dzetsaka icon indicating copy to clipboard operation
dzetsaka copied to clipboard

dzetsaka tells of an nonexistent problem

Open ppopoca opened this issue 2 years ago • 3 comments

Hi, Nicolas

I'm trying to run RF and I keep getting an error message asking me to make sure that my classes column has only integer values and that both my shapefile and raster have the same projection (EPSG:32616). However, both of these conditions are met by my files.

Where might the source of the problem be?

ppopoca avatar Jul 14 '22 01:07 ppopoca

Hello there,

I'm currently facing the exact same problem. Have you found a solution to that problem and how to fix it?

Best regards

Danro77 avatar Jun 09 '23 09:06 Danro77

Hi @Danro77,

I managed to solve (or bypass) the problem, unfortunately I don't remember exactly how I did it. However I can suggest you do some things to see if any of them works:

  • check, if you have more than 1 version of python, that scikit-learn is installed in python 3
  • check that there are only alphanumeric characters in the path to your layers' files
  • check the topology of your samples
  • check that all the bands in your raster have the same geometry: extent, resolution, alignment, etc.
  • make a copy of your layer by means of some process (e.g. translate the raster, buffer with d=0 the ROIs) and run dzetsaka using the copies

I hope this may be useful to you, and if I remember exactly what I did, I'll let you know.

ppopoca avatar Jun 09 '23 18:06 ppopoca

Hey @ppopoca,

thanks for your answer and your tips! I'll try them out as soon as I continue my work. I'll let you know which of your tips worked. :)

Danro77 avatar Jun 09 '23 19:06 Danro77