<root>
  <key>PolygonClassStatistics</key>
  <exec>otbcli_PolygonClassStatistics</exec>
  <longname>Polygon Class Statistics</longname>
  <group>Learning</group>
  <description>Computes statistics on a training polygon set.</description>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_InputImage">ParameterRaster</parameter_type>
    <key>in</key>
    <name>InputImage</name>
    <description>Support image that will be classified</description>
    <optional>False</optional>
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_InputImage">ParameterRaster</parameter_type>
    <key>mask</key>
    <name>InputMask</name>
    <description>Validity mask (only pixels corresponding to a mask value greater than 0 will be used for statistics)</description>
    <optional>True</optional>
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_InputFilename">ParameterFile</parameter_type>
    <key>vec</key>
    <name>Input vectors</name>
    <description>Input geometries to analyse</description>
    <isFolder />
    <optional>False</optional>
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_OutputFilename">OutputFile</parameter_type>
    <key>out</key>
    <name>Output Statistics</name>
    <description>Output file to store statistics (XML format)</description>
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_String">ParameterString</parameter_type>
    <key>field</key>
    <name>Field Name</name>
    <description>Name of the field carrying the class name in the input vectors.</description>
    <default>class</default>
    <multiline />
    <optional>True</optional>
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_Int">ParameterNumber</parameter_type>
    <key>layer</key>
    <name>Layer Index</name>
    <description>Layer index to read in the input vector file.</description>
    <minValue />
    <maxValue />
    <default>0</default>
    <optional>True</optional>
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_RAM">ParameterNumber</parameter_type>
    <key>ram</key>
    <name>Available RAM (Mb)</name>
    <description>Available memory for processing (in MB)</description>
    <minValue />
    <maxValue />
    <default>128</default>
    <optional>True</optional>
  </parameter>
</root>
