diff --git a/Code/Core/otbWrapperApplication.cxx b/Code/Core/otbWrapperApplication.cxx index 969e06a4bcf34dc78c622cab7205778fae3a0099..26b7b1c39210ba26ced92e410ab1a3e28513a8f2 100644 --- a/Code/Core/otbWrapperApplication.cxx +++ b/Code/Core/otbWrapperApplication.cxx @@ -296,7 +296,7 @@ void Application::SetParameterString(std::string parameter, std::string value) } -void Application::SetParameterOutputImage(std::string parameter, OutputImageParameter::VectorImageType* value) +void Application::SetParameterOutputImage(std::string parameter, VectorImageType* value) { Parameter* param = GetParameterByKey(parameter); @@ -307,7 +307,7 @@ void Application::SetParameterOutputImage(std::string parameter, OutputImagePara } } -void Application::SetParameterOutputVectorData(std::string parameter, OutputVectorDataParameter::VectorDataType* value) +void Application::SetParameterOutputVectorData(std::string parameter, VectorDataType* value) { Parameter* param = GetParameterByKey(parameter); diff --git a/Code/Core/otbWrapperApplication.h b/Code/Core/otbWrapperApplication.h index 1f10f67dc9a879d64b26ae0293093f764d4ff634..69173239912e6e5a2b26abd4dd3be66ea846f847 100644 --- a/Code/Core/otbWrapperApplication.h +++ b/Code/Core/otbWrapperApplication.h @@ -80,6 +80,12 @@ public: * the I/O (intermediary results for example) */ void Execute(); + /** Run the application, then writes all the output to disk + * if they have an associated filename. + * This is a helper function for wrappers without pipeline support. + */ + void ExecuteAndWriteOutput(); + /* Get the internal application parameters * * WARNING: this method may disappear from the API */