Mercurial > repos > mnhn65mo > gdal
diff ogrinfo.xml @ 0:2241ff3e5b7c draft default tip
Uploaded
author | mnhn65mo |
---|---|
date | Thu, 02 Aug 2018 06:30:23 -0400 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ogrinfo.xml Thu Aug 02 06:30:23 2018 -0400 @@ -0,0 +1,95 @@ +<tool id="ogrinfo" name="OGR Informations" version="0.1.0"> + <description>lists information about an OGR supported data source</description> + <requirements> + <requirement type="package" version="2.1.0">gdal</requirement> + <requirement type="package" version="3.5.0">geos</requirement> + <requirement type="package" version="9b">jpeg</requirement> + <requirement type="package" version="1.5.90">libjpeg-turbo</requirement> + </requirements> + <command detect_errors="exit_code"><![CDATA[ + ogrinfo -ro '$input1.extra_files_path/Shapefile.shp' -al + #if $settings.advanced=='advanced' + + #unless $settings.sql=='eg : SELECT * FROM Shapefile WHERE X>10': + -sql '$settings.sql' + #end unless + + $settings.so + + + #end if + + + > '$output' + + ]]></command> + + <inputs> + <param type="data" name="input1" format="data" label="Gdal supported input file" help="http://www.gdal.org/ogr_formats.html"/> + <conditional name="settings"> + <param name="advanced" type="select" label="Specify advanced parameters"> + <option value="simple" selected="true">No, use program defaults.</option> + <option value="advanced">Yes, see full parameter list.</option> + </param> + <when value="simple"> + </when> + <when value="advanced"> + <param name="sql" type="text" label="-sql statement" value="eg : SELECT * FROM Shapefile WHERE X>10" help="Your input is renamed Shapefile."> + <sanitizer> + <valid initial="string.printable"> + <add value=">"/> + </valid> + </sanitizer> + </param> + + <param name="so" label="-so" type="boolean" truevalue="-so" falsevalue="" checked="true"/> + </when> + </conditional> + </inputs> + + <outputs> + <data name="output" format="txt" label="OGR Info file on ${on_string}"/> + </outputs> + + <tests> + </tests> + <help><![CDATA[ +======== +Ogrinfo +======== + +**What it does** + +The Ogrinfo program lists various information about an OGR supported vector dataset. + +| + +**How to use it** + +Select from history a suported vector file. + +| + +**Other options, advanced usage** + +*-sql statement* + + Execute the indicated SQL statement and return the result. Your input is renamed Shapefile. + +| + +*-so* + + Summary Only: suppress listing of features, show only the summary information like projection, schema, feature count and extents. + +| + +**Sources** + +http://www.gdal.org + +http://www.gdal.org/ogr_utilities.html + +http://download.osgeo.org/gdal/workshop/foss4ge2015/workshop_gdal.pdf + ]]></help> +</tool>