<root>
  <key>SampleExtraction</key>
  <exec>otbcli_SampleExtraction</exec>
  <longname>Sample Extraction</longname>
  <group>Learning</group>
  <description>Extracts samples values from an image.</description>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_InputImage">ParameterRaster</parameter_type>
    <key>in</key>
    <name>InputImage</name>
    <description>Support image</description>
    <optional>False</optional>
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_InputFilename">ParameterFile</parameter_type>
    <key>vec</key>
    <name>Input sampling positions</name>
    <description>Vector data file containing samplingpositions. (OGR format)</description>
    <isFolder />
    <optional>False</optional>
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_OutputFilename">OutputFile</parameter_type>
    <key>out</key>
    <name>Output samples</name>
    <description>Output vector data file storing samplevalues (OGR format). If not given, the input vector data file is updated</description>
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_Choice">ParameterSelection</parameter_type>
    <key>outfield</key>
    <name>Output field names</name>
    <description>Choice between naming method for output fields</description>
    <options>
      <choices>
        <choice>prefix</choice>
        <choice>list</choice>
      </choices>
    </options>
    <default>0</default>
    <optional>False</optional>
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_String">ParameterString</parameter_type>
    <key>outfield.prefix.name</key>
    <name>Output field prefix</name>
    <description>Prefix used to form the field names thatwill contain the extracted values.</description>
    <default>value_</default>
    <multiline />
    <optional>False</optional>
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_StringList">ParameterString</parameter_type>
    <key>outfield.list.names</key>
    <name>Output field names</name>
    <description>Full list of output field names.</description>
    <default />
    <multiline />
    <optional>False</optional>
  </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 classname in the input vectors. This field is copied to output.</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>
