<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE tool SYSTEM "http://cpsoft.cz/data/applications/tg/src/xml/toolsgui.dtd">

<tool name="ogr2ogr" type="info">
    <command>ogr2ogr</command>
    <info>This program can be used to convert simple features data between file formats performing various operations during the process such as spatial or attribute selections, reducing the set of attributes, setting the output coordinate system or even reprojecting the features during translation.</info>
    <homepage>http://gdal.osgeo.org/ogr2ogr.html</homepage>
    <options>
		<group name="General">
			<file name="Source file" required="true" switcher="" info=""/>
			<file name="Destination file" required="true" switcher="" info=""/>
		</group>
		<group name="Advanced">
			<text name="Format name" switcher="-f" info="output file format name (default is ESRI Shapefile)"/>
			<checkbox name="Append to existing layer" switcher="-append" info="Append to existing layer instead of creating new"/>
			<checkbox name="Overwrite layer" switcher="-overwrite" info="Delete the output layer and recreate it empty"/>
			<checkbox name="Update" switcher="-update" info="Open existing output datasource in update mode rather than trying to create a new one"/>
			<list name="Fields to copy to new layer" fixed_length="false" switcher="-select" separator="," info="Comma-delimited list of fields from input layer to copy to the new layer. A field is skipped if mentioned previously in the list even if the input layer has duplicate field names. (Defaults to all; any field is skipped if a subsequent field with same name is found.)"/>
			<checkbox name="Append to existing layer" switcher="-progress" info="(starting with GDAL 1.7.0) Display progress on terminal. Only works if input layers have the 'fast feature count' capability." />

			<checkbox name="Skip failures" switcher="-skipfailures" info="Continue after a failure, skipping the failed feature."/>
			<list name="Spatial query extents" switcher="-spat" separator=" " info="Only features whose geometry intersects the extents will be selected. The geometries will not be clipped unless -clipsrc is specified">
				<item gr="0">
					xmin
				</item>
				<item gr="0">
					ymin
				</item>
				<item gr="0"> 
					xmax
				</item>
				<item gr="0"> 
					ymax
				</item>
			</list>
			<pairs name="Dataset creation option" switcher="-dsco" info="Dataset creation option (format specific)" separator=","/>
			<pairs name="Layer creation option" switcher="-lco" info="Layer creation option (format specific) " separator=","/>
			<text name="Alternate name of new layer" switcher="-nln" info="Assign an alternate name to the new layer"/>
			<select name="Geometry type of new layer" switcher="-nlt" info="Define the geometry type for the created layer. One of NONE, GEOMETRY, POINT, LINESTRING, POLYGON, GEOMETRYCOLLECTION, MULTIPOINT, MULTIPOLYGON or MULTILINESTRING. Add '25D' to the name to get 2.5D versions.">
				 <item>NONE</item>
				 <item>GEOMETRY</item>
				 <item>POINT</item>
				 <item>LINESTRING</item>
				 <item>POLYGON</item>
				 <item>GEOMETRYCOLLECTION</item>
				 <item>MULTIPOINT</item>
				 <item>MULTIPOLYGON</item>
				 <item>MULTILINESTRING</item>
			</select>
			<text name="Output SRS" switcher="-a_srs" info="Assign an output SRS"/>
			<text name="Transform to this SRS" switcher="-t_srs" info="Reproject/transform to this SRS on output"/>
			<text name="Override source SRS" switcher="-s_srs" info="Override source SRS"/>
			<text name="Feature ID" switcher="-fid" info="If provided, only the feature with this feature id will be reported. Operates exclusive of the spatial or attribute queries. Note: if you want to select several features based on their feature id, you can also use the fact the 'fid' is a special field recognized by OGR SQL. So, '-where fid in (1,3,5)' would select features 1, 3 and 5."/>

			<text name="Group n features" switcher="-gt" info="group n features per transaction (default 200)"/>
			<checkbox name="Split geometries crossing meridian" switcher="-wrapdateline" info="(starting with GDAL 1.7.0) split geometries crossing the dateline meridian (long. = +/- 180deg)"/>
			<text name="Maximum nodes distance" switcher="-segmentize" info="(starting with GDAL 1.6.0) maximum distance between 2 nodes. Used to create intermediate pointsspatial query extents"/>
			<list name="Fields to string" switcher="-fieldTypeToString" separator="," fixed_length="false" info="(starting with GDAL 1.7.0) converts any field of the specified type to a field of type string in the destination layer. Valid types are : Integer, Real, String, Date, Time, DateTime, Binary, IntegerList, RealList, StringList. Special value All can be used to convert all fields to strings. This is an alternate way to using the CAST operator of OGR SQL, that may avoid typing a long SQL query."/>
			<checkbox name="Split fields" switcher="-splitlistfields" info="(starting with GDAL 1.8.0) split fields of type StringList, RealList or IntegerList into as many fields of type String, Real or Integer as necessary."/>
			<text name="Limit number of subfields" switcher="-maxsubfields" info="To be combined with -splitlistfields to limit the number of subfields created for each split field."/>
			<checkbox name="One feature to each geometry" switcher="-explodecollections" info="(starting with GDAL 1.8.0) produce one feature for each geometry in any kind of geometry collection in the source file"/>
			<text name="Z coordinate field" switcher="-zfield field_name" info="(starting with GDAL 1.8.0) Uses the specified field to fill the Z coordinate of geometries"/>
		</group>
		<group name="Clipping">
			<text name="Clip geometries" switcher="-clipsrc" info="(starting with GDAL 1.7.0) clip geometries to the specified bounding box (expressed in source SRS), WKT geometry (POLYGON or MULTIPOLYGON), from a datasource or to the spatial extent of the -spat option if you use the spat_extent keyword. When specifying a datasource, you will generally want to use it in combination of the -clipsrclayer, -clipsrcwhere or -clipsrcsql options"/>
			<text name="Select desired geometries" switcher="-clipsrcsql" info="Select desired geometries using an SQL query instead."/>
			<text name="Feature ID" switcher="-clipsrclayer" info="Select the named layer from the source clip datasource."/>
			<text name="Restrict desired geometries" switcher="-clipsrcwhere" info="Restrict desired geometries based on attribute query."/>
			<list name="Clip geometries after reprojection" switcher="-clipdst" separator=" " info="(starting with GDAL 1.7.0) clip geometries after reprojection to the specified bounding box (expressed in dest SRS), WKT geometry (POLYGON or MULTIPOLYGON) or from a datasource. When specifying a datasource, you will generally want to use it in combination of the -clipdstlayer, -clipdstwhere or -clipdstsql options">
				<item gr="0">
					xmin
				</item>
				<item gr="0">
					ymin
				</item>
				<item gr="0"> 
					xmax
				</item>
				<item gr="0"> 
					ymax
				</item>
			</list>
			<text name="Select desired geometries" switcher="-clipdstsql" info="Select desired geometries using an SQL query instead."/>
			<text name="Select named layer" switcher="-clipdstlayer" info="Select the named layer from the destination clip datasource."/>
			<text name="Restrict desired geometries" switcher="-clipdstwhere" info="Restrict desired geometries based on attribute query."/>

		</group>
		<group name="SQL">
			<text name="SQL" switcher="-sql" info="SQL statement to execute. The resulting table/layer will be saved to the output."/>
			<text name="SQL dialect" switcher="-dialect" info="SQL dialect. In some cases can be used to use (unoptimized) OGR SQL instead of the native SQL of an RDBMS by passing OGRSQL."/>
			<text name="SQL WHERE statement"  switcher="-where" info="Attribute query (like SQL WHERE)"/>
		</group>
    </options>
</tool>
