<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE tool SYSTEM "http://cpsoft.cz/data/applications/tg/src/xml/toolsgui.dtd">

<tool name="gdalwarp" type="process">
    <command>gdalwarp</command>
    <info>The gdalwarp utility is an image mosaicing, reprojection and warping utility. The program can reproject to any supported projection, and can also apply GCPs stored with the image if the image is "raw" with control information.</info>
    <homepage>http://gdal.osgeo.org/gdalwarp.html</homepage>
    <options>
    <group name="General">
        <file name="Source file" required="true" switcher="" info="The source file name(s)."/>
		<file name="Destination file" required="true" switcher="" info="The destination file name." />
  		<text name="Source spatial reference " switcher="-s_srs" info="source spatial reference set. The coordinate systems that can be passed are anything supported by the OGRSpatialReference.SetFromUserInput() call, which includes EPSG PCS and GCSes (ie. EPSG:4296), PROJ.4 declarations (as above), or the name of a .prf file containing well known text." />
		<text name="Target spatial reference " switcher="-t_srs" info="target spatial reference set. The coordinate systems that can be passed are anything supported by the OGRSpatialReference.SetFromUserInput() call, which includes EPSG PCS and GCSes (ie. EPSG:4296), PROJ.4 declarations (as above), or the name of a .prf file containing well known text." />
		<list name="Georeferenced extents" switcher="-te" separator=" " info="set georeferenced extents of output file to be created (in target SRS)." >
			<item gr="0">
				xmin
			</item>
			<item gr="0">
				ymin
			</item>
			<item gr="0">
				xmax
			</item>
			<item gr="0">
				ymax
			</item>
		</list>
		<list name="Output resolution" switcher="-tr" separator=" " info="set output file resolution (in target georeferenced units)">
			<item gr="0">
				xres
			</item>
			<item gr="0">
				yres
			</item>
		</list>
		<list name="Nodata for input" switcher="-srcnodata" separator=" " info="Set nodata masking values for input bands (different values can be supplied for each band). If more than one value is supplied all values should be quoted to keep them together as a single operating system argument. Masked values will not be used in interpolation. Use a value of None to ignore intrinsic nodata settings on the source dataset.">
			<item gr="0">
				value
			</item>
			<item gr="1">
				value
			</item>
		</list>
		<list name="Nodata for output" switcher="-dstnodata" separator=" " info="Set nodata values for output bands (different values can be supplied for each band). If more than one value is supplied all values should be quoted to keep them together as a single operating system argument. New files will be initialized to this value and if possible the nodata value will be recorded in the output file.">
			<item gr="0">
				value
			</item>
			<item gr="1">
				value
			</item>
		</list>
		<checkbox name="Output alpha band" switcher="-dstalpha" info="Create an output alpha band to identify nodata (unset/transparent) pixels." />
		<checkbox name="Quiet mode" switcher="-q" info="Be quiet." />
		<text name="Output format" switcher="-of" default="GTIFF" info="Select the output format. The default is GeoTIFF (GTiff). Use the short format name."/>
		<checkbox name="Overwrite target" switcher="-overwrite" info="(GDAL >= 1.8.0) Overwrite the target dataset if it already exists." />
	</group>
	<group name="Cutline">	
		<text name="Cutline use" switcher="-cutline" info="Enable use of a blend cutline from the name OGR support datasource." />
		<text name="Select layer" switcher="-cl" info="Select the named layer from the cutline datasource." />
		<text name="Cutline restriction" switcher="-cwhere" info="Restrict desired cutline features based on attribute query." />
		<text name="Cutline query" switcher="-csql" info="Select cutline features using an SQL query instead of from a layer with -cl." />
		<text name="Cutline blend distance" switcher="-cblend" info="Set a blend distance to use to blend over cutlines (in pixels)." />
		<checkbox name="Crop the extent" switcher="-crop_to_cutline" info="(GDAL >= 1.8.0) Crop the extent of the target dataset to the extent of the cutline." />
	</group>
	<group name="Advanced">
		<text name="Polynomial warping order" switcher="-order" info="order of polynomial used for warping (1 to 3). The default is to select a polynomial order based on the number of GCPs." />
		<checkbox name="Thin plate spline use" switcher="-tps" info="Force use of thin plate spline transformer based on available GCPs." />
		<checkbox name="RPCs use" switcher="-rps" info="Force use of RPCs." />
		<checkbox name="Geolocation arrays use" switcher="-geoloc" info="Force use of Geolocation Arrays." />
		<text name="Error threshold" switcher="-et" info="error threshold for transformation approximation (in pixel units - defaults to 0.125)." />
		<pairs name="Transformer option" switcher="-to" quotes="true" separator="," info="set a transformer option suitable to pass to GDALCreateGenImgProjTransformer2()." />
		<checkbox name="Target aligned pixels" switcher="-tap" info="(GDAL >= 1.8.0) (target aligned pixels) align the coordinates of the extent of the output file to the values of the -tr, such that the aligned extent includes the minimum extent." />
		<list name="Output size" switcher="-ts" separator=" " info="set output file size in pixels and lines. If width or height is set to 0, the other dimension will be guessed from the computed resolution. Note that -ts cannot be used with -tr">
			<item gr="0">
				width
			</item>
			<item gr="0">
				height
			</item>
		</list>
		<pairs name="Warp option" switcher="-wo" quotes="true" separator="," info="Set a warp options. The GDALWarpOptions::papszWarpOptions docs show all options. Multiple -wo options may be listed." />
		<select name="Output data type" switcher="-ot" info="For the output bands to be of the indicated data type.">
			<item>
				Byte
			</item>
			<item>
				Int16
			</item>
			<item>
				UInt16
			</item>
			<item>
				UInt32
			</item>
			<item>
				Int32
			</item>
			<item>
				Float64
			</item>
			<item>
				Float32
			</item>
			<item>
				CInt16
			</item>
			<item>
				CInt32
			</item>
			<item>
				CFloat32
			</item>
			<item>
				CFloat64
			</item>
		</select>
		<select name="Working data type" switcher="-wt" info="Working pixel data type. The data type of pixels in the source image and destination image buffers.">
			<item>
				Byte
			</item>
			<item>
				Int16
			</item>
		</select>
		<select name="Resampling method" switcher="-r" info="Resampling method to use. Available methods are near:nearest neighbour resampling (default, fastest algorithm, worst interpolation quality), bilinear:bilinear resampling, cubic:cubic resampling, cubicspline: cubic spline resampling, lanczos: Lanczos windowed sinc resampling.">
			<item>
				near
			</item>
			<item>
				bilinear
			</item>
			<item>
				cubic
			</item>
			<item>
				cubicspline
			</item>
			<item>
				lanczos
			</item>
		</select>
		<text name="Set memory" switcher="-wm" info="Set the amount of memory (in megabytes) that the warp API is allowed to use for caching." />
		<checkbox name="Multithreaded warping" switcher="-multi" info="Use multithreaded warping implementation. Multiple threads will be used to process chunks of image and perform input/output operation simultaneously." />		
		<pairs name="Creation option" switcher="-co" quotes="true" separator="," info="Passes a creation option to the output format driver. Multiple -co options may be listed. See format specific documentation for legal creation options for each format."/>
	</group>
    </options>
</tool>