diff --git a/Modules/Applications/AppClassification/include/otbVectorPrediction.h b/Modules/Applications/AppClassification/include/otbVectorPrediction.h index 7441863f7b632f85f57f8b3da7c015b99477ab93..8dd7004c4b4018a47812631f7a088f30106d37a5 100644 --- a/Modules/Applications/AppClassification/include/otbVectorPrediction.h +++ b/Modules/Applications/AppClassification/include/otbVectorPrediction.h @@ -109,7 +109,7 @@ private: ogr::DataSource::Pointer buffer); /** Create the output DataSource. */ - otb::ogr::DataSource::Pointer CreateOutputDataSource(ogr::DataSource::Pointer source, ogr::Layer& layer); + otb::ogr::DataSource::Pointer CreateOutputDataSource(ogr::Layer& layer); /** Add a prediction field in the output layer if it does not exist. * If computeConfidenceMap evaluates to true a confidence field will be diff --git a/Modules/Applications/AppClassification/include/otbVectorPrediction.hxx b/Modules/Applications/AppClassification/include/otbVectorPrediction.hxx index 30067a636241b981e2b1d1b1cb4877e911c95d41..7d6a64d2a76266aed889e3d386b4aba4179ef140 100644 --- a/Modules/Applications/AppClassification/include/otbVectorPrediction.hxx +++ b/Modules/Applications/AppClassification/include/otbVectorPrediction.hxx @@ -164,7 +164,7 @@ otb::ogr::DataSource::Pointer VectorPrediction<RegressionMode>::ReopenDataSource } template <bool RegressionMode> -otb::ogr::DataSource::Pointer VectorPrediction<RegressionMode>::CreateOutputDataSource(ogr::DataSource::Pointer /*source*/, ogr::Layer& layer) +otb::ogr::DataSource::Pointer VectorPrediction<RegressionMode>::CreateOutputDataSource(ogr::Layer& layer) { ogr::DataSource::Pointer output; // Create new OGRDataSource @@ -316,7 +316,7 @@ void VectorPrediction<RegressionMode>::DoExecute() } else { - output = CreateOutputDataSource(source, layer); + output = CreateOutputDataSource(layer); } otb::ogr::Layer outLayer = output->GetLayer(0);