RStoolbox icon indicating copy to clipboard operation
RStoolbox copied to clipboard

Training data error superClass

Open Saadi4469 opened this issue 3 years ago • 0 comments

I am trying to perform a supervised classification using polygon spatial data and a RGB raster. However, I am getting the following error even though rgdal picks up the shapefile as a SpatialPolygonsDataFrame.

How can I fix this?

Error Error: traingData must POINTs or a POLYGONs

Code

SC_RF = superClass(img = CR, model = "rf", trainData = Training_Data,
                         responseCol = "Feature")

image

Saadi4469 avatar Jun 01 '22 16:06 Saadi4469