Hi, Is the process running to the end despite of the error message ? Sometimes gdal reports errors but the process succeeds.
In any case, can you file a bug report with an extract of your shp file ? https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/issues Thanks a lot, Julien De : otb-users@googlegroups.com [mailto:otb-users@googlegroups.com] De la part de Alzira Ramos Envoyé : mardi 15 mai 2018 15:30 À : otb-users <otb-users@googlegroups.com> Objet : [otb-users] Re: OGRLayerClassifier Hi! Did you known what was the problem? Best reards, Alzira segunda-feira, 15 de Maio de 2017 às 16:22:36 UTC+2, Salah eddine AIT AHTMAN escreveu: Hi, I'm trying to get the classification (OGRLayerClassifier) of my vector layer outcome from the LSMS Segmentation by using an svm model generated with TrainVectorClassifier , but when i run the processing i get ERROR 1: Invalid index : -1 there is my shell command: "otbcli_OGRLayerClassifier -inshp LSMSSegmentation.shp -instats meanVar.xml -insvm svm_model.svm -feat meanB0 meanB1 meanB2 -cfield predicted " Thanks for reply Salah eddine. -- -- Check the OTB FAQ at http://www.orfeo-toolbox.org/FAQ.html You received this message because you are subscribed to the Google Groups "otb-users" group. To post to this group, send email to otb-users@googlegroups.com<mailto:otb-users@googlegroups.com> To unsubscribe from this group, send email to otb-users+unsubscr...@googlegroups.com<mailto:otb-users+unsubscr...@googlegroups.com> For more options, visit this group at http://groups.google.com/group/otb-users?hl=en --- You received this message because you are subscribed to the Google Groups "otb-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to otb-users+unsubscr...@googlegroups.com<mailto:otb-users+unsubscr...@googlegroups.com>. For more options, visit https://groups.google.com/d/optout. -- -- Check the OTB FAQ at http://www.orfeo-toolbox.org/FAQ.html You received this message because you are subscribed to the Google Groups "otb-users" group. To post to this group, send email to otb-users@googlegroups.com To unsubscribe from this group, send email to otb-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/otb-users?hl=en --- You received this message because you are subscribed to the Google Groups "otb-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to otb-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.