diff --git a/Applications/Segmentation/otbSegmentation.cxx b/Applications/Segmentation/otbSegmentation.cxx index 5d3f370869b1bfacfe440b417cfaf8e9935c51bd..f41aea7a45951a0503ca62521c003394278e76ed 100644 --- a/Applications/Segmentation/otbSegmentation.cxx +++ b/Applications/Segmentation/otbSegmentation.cxx @@ -451,7 +451,7 @@ private: if(GetParameterString("mode.vector.outmode") == "ovw") { // Create the datasource - ogrDS = otb::ogr::DataSource::New(dataSourceName, otb::ogr::DataSource::Modes::Update_LayerOverwrite); + ogrDS = otb::ogr::DataSource::New(dataSourceName, otb::ogr::DataSource::Modes::Overwrite); // and create the layer since we are in overwrite mode, the // datasource is blank