I am trying to use the TrainVectorClassifier accessing by Monteverdi, but I am getting the following error message: (FATAL) TrainVectorClassifier: Caught std::exception during application execution: invalid stod argument
Could anyone help me to understand what is wrong?
This error means a conversion from string to float has fail (for example âabcâ cannot be convert to a number)
Can you export your application parameters in an XML file (in the application window, go to Application then âSave to XMLâ) so we can help you with this problem ?
Maybe the problem comes from the field you chose for the classification (âField names for training featuresâ). This field should be an integer, not a string.
****2020-01-28 11:12:57 (FATAL) VectorClassifier: itk::ERROR: Failed to open GDALDataset file G:/Il :
Could you please help me again to understand the problem?
Sorry for all this questions but I am new in this field.
I am very grateful and I wish you a nice day.
Hi Ludovica,
Can you retry from a different path, that does not contains spaces ? Looks like the files and folders cannot be accessed properly because of the name of your drive that contains space characters.
Dear @CastanoFernando,
The error you get is different from the one Cedric is addressing in this discussion. I doubt you problem comes from a conversion from string to integer.
Could you share with us the parameters you used as input for the Superimpose application?
Regards,
Julien.
Dear @julienosman, thank you for answering my question. Itâs true, I hadnât realized it was another problem. I am using OTB through QGIS, the parameters used are as follows:
I donât see any problem here. What do you obtain when you try gdalinfo ? You can run gdalinfo from QGIS (GDAL/Raster miscellaneous/Raster information), or from the command line: gdalinfo D:/Servidor/REM_SENS/PAN.tif
and gdalinfo D:/Servidor/REM_SENS/XS.tif
I managed to solve the problem by reprojecting both rasters to another coordinate system, but I would not know why it does not accept that the inputs are in EPSG: 4326.
Thank you very much for having answered my question.
Greetings,
Fernando