<root>
  <key>Rasterization-image</key>
  <exec>otbcli_Rasterization</exec>
  <longname>Rasterization (image)</longname>
  <group>Vector Data Manipulation</group>
  <description>Rasterize a vector dataset.</description>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_InputVectorData">ParameterVector</parameter_type>
    <key>in</key>
    <name>Input vector dataset</name>
    <description>The input vector dataset to be rasterized</description>
    <shapetype />
    <optional>False</optional>
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_OutputImage">OutputRaster</parameter_type>
    <key>out</key>
    <name>Output image</name>
    <description>An output image containing the rasterized vector dataset</description>
    <hidden />
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_InputImage">ParameterRaster</parameter_type>
    <key>im</key>
    <name>Input reference image</name>
    <description>A reference image from which to import output grid and projection reference system information.</description>
    <optional>True</optional>
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_Float">ParameterNumber</parameter_type>
    <key>background</key>
    <name>Background value</name>
    <description>Default value for pixels not belonging to any geometry</description>
    <minValue />
    <maxValue />
    <default>0</default>
    <optional>False</optional>
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_Choice">ParameterSelection</parameter_type>
    <key>mode</key>
    <name>Rasterization mode</name>
    <description>Choice of rasterization modes</description>
    <options>
      <choices>
        <choice>binary</choice>
        <choice>attribute</choice>
      </choices>
    </options>
    <default>0</default>
    <optional>False</optional>
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_Float">ParameterNumber</parameter_type>
    <key>mode.binary.foreground</key>
    <name>Foreground value</name>
    <description>Value for pixels inside a geometry</description>
    <minValue />
    <maxValue />
    <default>255</default>
    <optional>False</optional>
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_String">ParameterString</parameter_type>
    <key>mode.attribute.field</key>
    <name>The attribute field to burn</name>
    <description>Name of the attribute field to burn</description>
    <default>DN</default>
    <multiline />
    <optional>False</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>
