From a4469198de627227f2ef406e10f7b1f485b9eca4 Mon Sep 17 00:00:00 2001 From: Manuel Grizonnet <manuel.grizonnet@orfeo-toolbox.org> Date: Thu, 1 Dec 2011 18:13:38 +0100 Subject: [PATCH] ENH:add output role to group of parameters --- Applications/Utils/otbReadImageInfo.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Applications/Utils/otbReadImageInfo.cxx b/Applications/Utils/otbReadImageInfo.cxx index daa3c15324..8d01104cfb 100644 --- a/Applications/Utils/otbReadImageInfo.cxx +++ b/Applications/Utils/otbReadImageInfo.cxx @@ -125,15 +125,18 @@ private: AddParameter(ParameterType_Int, "rgb.r", "Red Band"); SetParameterDescription("rgb.r","Red band Number"); SetDefaultParameterInt("rgb.r", 1); + GetParameterByKey("rgb.r")->SetRole(Role_Output); AddParameter(ParameterType_Int, "rgb.g", "Green Band"); SetParameterDescription("rgb.g","Green band Number"); SetDefaultParameterInt("rgb.g", 2); + GetParameterByKey("rgb.g")->SetRole(Role_Output); AddParameter(ParameterType_Int, "rgb.b", "Blue Band"); SetParameterDescription("rgb.b","Blue band Number"); SetDefaultParameterInt("rgb.b", 3); - + GetParameterByKey("rgb.b")->SetRole(Role_Output); + AddParameter(ParameterType_String,"projectionref","Projection Coordinate System"); GetParameterByKey("projectionref")->SetRole(Role_Output); @@ -147,11 +150,15 @@ private: AddParameter(ParameterType_Int, "gcp.count", "GCPs Number"); SetParameterDescription("gcp.count","Number of GCPs"); SetDefaultParameterInt("gcp.count", 0); + GetParameterByKey("gcp.count")->SetRole(Role_Output); AddParameter(ParameterType_String,"gcp.proj","GCP Projection System"); + GetParameterByKey("gcp.proj")->SetRole(Role_Output); AddParameter(ParameterType_StringList,"gcp.ids","GCPs Id"); + //GetParameterByKey("gcp.ids")->SetRole(Role_Output); AddParameter(ParameterType_StringList,"gcp.info","GCPs Info"); + //GetParameterByKey("gcp.info")->SetRole(Role_Output); // Doc example parameter settings SetDocExampleParameterValue("in", "QB_Toulouse_Ortho_XS.tif"); -- GitLab