diff --git a/Modules/Applications/AppClassification/include/otbTrainVectorBase.hxx b/Modules/Applications/AppClassification/include/otbTrainVectorBase.hxx index 1ca5375528660828fd33663b1c6aaeda13bdf156..8de3e03623b48470f0d9454b0e6b67df877bdd74 100644 --- a/Modules/Applications/AppClassification/include/otbTrainVectorBase.hxx +++ b/Modules/Applications/AppClassification/include/otbTrainVectorBase.hxx @@ -142,7 +142,7 @@ TrainVectorBase<TInputValue, TOutputValue> std::string tmpKey = "feat." + key.substr( 0, static_cast<unsigned long>( end - key.begin() ) ); this->AddChoice( tmpKey, item ); } - if( fieldType == OFTString || fieldType == OFTInteger || fieldType == OFTInteger64 ) + if( fieldType == OFTString || fieldType == OFTInteger || fieldType == OFTInteger64 || fieldType == OFTReal ) { std::string tmpKey = "cfield." + key.substr( 0, static_cast<unsigned long>( end - key.begin() ) ); this->AddChoice( tmpKey, item );