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

<tool name="ogrinfo" type="info">
    <command>ogrinfo</command>
    <info>The ogrinfo program lists various information about an OGR supported data source to stdout (the terminal).</info>
    <homepage>http://gdal.osgeo.org/ogrinfo.html</homepage>
    <options>
		<group name="General">
			<file name="Datasource name" switcher="" info="The data source to open. May be a filename, directory or other virtual name. See the OGR Vector Formats list for supported datasources."/>
			<text name="Layers" switcher="" info="One or more layer names may be reported. "/>

		</group>
		<group name="Advanced">
			<checkbox name="Read only" switcher="-ro" info="Open the data source in read-only mode." />
			<checkbox name="List all features" switcher="-al" info="List all features of all layers (used instead of having to give layer names as arguments)."/>
			<checkbox name="Summary only" switcher="-so" info="Supress listing of features, show only the summary information like projection, schema, feature count and extents."/>
			<checkbox name="Quiet reporting" switcher="-q" info="Quiet verbose reporting of various information, including coordinate system, layer schema, extents, and feature count."/>
			<list name="Area of interest" switcher="-spat" separator=" " info="The area of interest. Only features within the rectangle will be reported.">
				<item gr="0">
					xmin
				</item>
				<item gr="0">
					ymin
				</item>
				<item gr="0"> 
					xmax
				</item>
				<item gr="0"> 
					ymax
				</item>
			</list>
			<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."/>
			<select name="Display field values" switcher="-fields=" info="(starting with GDAL 1.6.0) If set to NO, the feature dump will not display field values. Default value is YES.">
				<item>
					YES
				</item>
				<item>
					NO
				</item>
			</select>
			<select name="Display geometry values" switcher="-geom=" info="(starting with GDAL 1.6.0) If set to NO, the feature dump will not display the geometry. If set to SUMMARY, only a summary of the geometry will be displayed. If set to YES, the geometry will be reported in full OGC WKT format. Default value is YES.">
				<item>
					YES
				</item>
				<item>
					NO
				</item>
				<item>
					SUMMARY
				</item>
			</select>
		</group>
		<group name="SQL">
			<text name="WHERE SQL statement" switcher="-where" info="An attribute query in a restricted form of the queries used in the SQL WHERE statement. Only features matching the attribute query will be reported."/>
			<text name="SQL" switcher="-sql" info="Execute the indicated SQL statement and return the result."/>
			<text name="SQL dialect" switcher="-dialect" info="In some cases can be used to use (unoptimized) OGR SQL instead of the native SQL of an RDBMS by passing OGRSQL."/>
		</group>
		<group name="Formats">
			<checkbox name="List formates" switcher="--formats" info="List the format drivers that are enabled."/>
		</group>
    </options>
</tool>
