From e6fb365a6d3a899a7476c7a4e4d5ced7dbbe5485 Mon Sep 17 00:00:00 2001
From: Marina Bertolino <marina.bertolino@c-s.fr>
Date: Mon, 23 Oct 2017 12:08:59 +0200
Subject: [PATCH] ENH: create deprecated tag and add tags in Convert and
 Rescale app

---
 Modules/Applications/AppImageUtils/app/otbConvert.cxx       | 1 +
 Modules/Applications/AppImageUtils/app/otbRescale.cxx       | 2 +-
 Modules/Wrappers/ApplicationEngine/include/otbWrapperTags.h | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/Modules/Applications/AppImageUtils/app/otbConvert.cxx b/Modules/Applications/AppImageUtils/app/otbConvert.cxx
index 51ce7f3eeb..362cee272e 100644
--- a/Modules/Applications/AppImageUtils/app/otbConvert.cxx
+++ b/Modules/Applications/AppImageUtils/app/otbConvert.cxx
@@ -106,6 +106,7 @@ private:
     SetDocSeeAlso("Rescale");
 
     AddDocTag(Tags::Manip);
+    AddDocTag(Tags::Deprecated);
     AddDocTag("Conversion");
     AddDocTag("Image Dynamic");
 
diff --git a/Modules/Applications/AppImageUtils/app/otbRescale.cxx b/Modules/Applications/AppImageUtils/app/otbRescale.cxx
index 54cb606e0a..fa807fbe7a 100644
--- a/Modules/Applications/AppImageUtils/app/otbRescale.cxx
+++ b/Modules/Applications/AppImageUtils/app/otbRescale.cxx
@@ -63,7 +63,7 @@ private:
     SetDocSeeAlso(" ");
 
     AddDocTag(Tags::Manip);
-
+    AddDocTag(Tags::Deprecated);
     AddParameter(ParameterType_InputImage,  "in",   "Input Image");
     SetParameterDescription( "in", "The image to scale." );
     AddParameter(ParameterType_OutputImage, "out",  "Output Image");
diff --git a/Modules/Wrappers/ApplicationEngine/include/otbWrapperTags.h b/Modules/Wrappers/ApplicationEngine/include/otbWrapperTags.h
index ace5277f8b..6b5e3869aa 100644
--- a/Modules/Wrappers/ApplicationEngine/include/otbWrapperTags.h
+++ b/Modules/Wrappers/ApplicationEngine/include/otbWrapperTags.h
@@ -49,6 +49,7 @@ static const std::string SAR="SAR";
 static const std::string Stereo="Stereo";
 static const std::string Segmentation="Segmentation";
 static const std::string Vector="Vector Data Manipulation";
+static const std::string Deprecated="Deprecated";
 
 } // end namespace Wrappers
 } // end namespace Tags
-- 
GitLab