Mercurial > repos > mnhn65mo > gdal
comparison ogrinfo.xml @ 0:2241ff3e5b7c draft default tip
Uploaded
author | mnhn65mo |
---|---|
date | Thu, 02 Aug 2018 06:30:23 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:2241ff3e5b7c |
---|---|
1 <tool id="ogrinfo" name="OGR Informations" version="0.1.0"> | |
2 <description>lists information about an OGR supported data source</description> | |
3 <requirements> | |
4 <requirement type="package" version="2.1.0">gdal</requirement> | |
5 <requirement type="package" version="3.5.0">geos</requirement> | |
6 <requirement type="package" version="9b">jpeg</requirement> | |
7 <requirement type="package" version="1.5.90">libjpeg-turbo</requirement> | |
8 </requirements> | |
9 <command detect_errors="exit_code"><![CDATA[ | |
10 ogrinfo -ro '$input1.extra_files_path/Shapefile.shp' -al | |
11 #if $settings.advanced=='advanced' | |
12 | |
13 #unless $settings.sql=='eg : SELECT * FROM Shapefile WHERE X>10': | |
14 -sql '$settings.sql' | |
15 #end unless | |
16 | |
17 $settings.so | |
18 | |
19 | |
20 #end if | |
21 | |
22 | |
23 > '$output' | |
24 | |
25 ]]></command> | |
26 | |
27 <inputs> | |
28 <param type="data" name="input1" format="data" label="Gdal supported input file" help="http://www.gdal.org/ogr_formats.html"/> | |
29 <conditional name="settings"> | |
30 <param name="advanced" type="select" label="Specify advanced parameters"> | |
31 <option value="simple" selected="true">No, use program defaults.</option> | |
32 <option value="advanced">Yes, see full parameter list.</option> | |
33 </param> | |
34 <when value="simple"> | |
35 </when> | |
36 <when value="advanced"> | |
37 <param name="sql" type="text" label="-sql statement" value="eg : SELECT * FROM Shapefile WHERE X>10" help="Your input is renamed Shapefile."> | |
38 <sanitizer> | |
39 <valid initial="string.printable"> | |
40 <add value=">"/> | |
41 </valid> | |
42 </sanitizer> | |
43 </param> | |
44 | |
45 <param name="so" label="-so" type="boolean" truevalue="-so" falsevalue="" checked="true"/> | |
46 </when> | |
47 </conditional> | |
48 </inputs> | |
49 | |
50 <outputs> | |
51 <data name="output" format="txt" label="OGR Info file on ${on_string}"/> | |
52 </outputs> | |
53 | |
54 <tests> | |
55 </tests> | |
56 <help><![CDATA[ | |
57 ======== | |
58 Ogrinfo | |
59 ======== | |
60 | |
61 **What it does** | |
62 | |
63 The Ogrinfo program lists various information about an OGR supported vector dataset. | |
64 | |
65 | | |
66 | |
67 **How to use it** | |
68 | |
69 Select from history a suported vector file. | |
70 | |
71 | | |
72 | |
73 **Other options, advanced usage** | |
74 | |
75 *-sql statement* | |
76 | |
77 Execute the indicated SQL statement and return the result. Your input is renamed Shapefile. | |
78 | |
79 | | |
80 | |
81 *-so* | |
82 | |
83 Summary Only: suppress listing of features, show only the summary information like projection, schema, feature count and extents. | |
84 | |
85 | | |
86 | |
87 **Sources** | |
88 | |
89 http://www.gdal.org | |
90 | |
91 http://www.gdal.org/ogr_utilities.html | |
92 | |
93 http://download.osgeo.org/gdal/workshop/foss4ge2015/workshop_gdal.pdf | |
94 ]]></help> | |
95 </tool> |