Mercurial > repos > ecology > gdal_ogrinfo
comparison ogrinfo.xml @ 0:edd99ac6d4a4 draft
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tools/gdal commit b964e8f7d7bb076d63a1c7bdfbbdba0f9074d517
author | ecology |
---|---|
date | Tue, 26 Feb 2019 11:50:33 -0500 |
parents | |
children | 7bdf6ee695a8 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:edd99ac6d4a4 |
---|---|
1 <tool id="gdal_ogrinfo" name="OGR Informations" version="@VERSION@"> | |
2 <description>lists information about an OGR supported data source</description> | |
3 <macros> | |
4 <import>gdal_macros.xml</import> | |
5 </macros> | |
6 <expand macro="gdal_requirements" /> | |
7 <command detect_errors="exit_code"><![CDATA[ | |
8 ogrinfo -ro '$input1' -al | |
9 #if $settings.advanced=='advanced' | |
10 #if $settings.condi_sql.sql=='sql': | |
11 #if str($settings.condi_sql.sql_statement).strip()!='': | |
12 -sql '$settings.condi_sql.sql_statement' | |
13 #end if | |
14 #end if | |
15 $settings.so | |
16 #end if | |
17 > '$output' | |
18 ]]></command> | |
19 <inputs> | |
20 <param type="data" name="input1" format="xml,txt,netcdf" label="Gdal supported vector input file" help="Currently supported format are GeoJSON GML KML and WFS"/> | |
21 <conditional name="settings"> | |
22 <expand macro="gdal_advanced_params_select"/> | |
23 <when value="advanced"> | |
24 <conditional name="condi_sql"> | |
25 <param name="sql" type="select" label="Use a sql query on the file" help="-sql. Execute the indicated SQL statement and return the result"> | |
26 <option value="no_sql" selected="true">Don't use the -sql option</option> | |
27 <option value="sql">Use the -sql option</option> | |
28 </param> | |
29 <when value="no_sql"> | |
30 </when> | |
31 <when value="sql"> | |
32 <param name="sql_statement" type="text" label="Execute the indicated SQL" help="-sql statement eg : SELECT * FROM layer WHERE X>10." value=""> | |
33 <sanitizer sanitize="False"/> | |
34 <validator type="regex" message="Type a valid SQL query">^(?ims)\s*select\s+.*\s+from\s+.*$</validator> | |
35 </param> | |
36 </when> | |
37 </conditional> | |
38 <param name="so" label="Summary Only" help="-so. Suppress listing of features, show only the summary information like projection, schema, feature count and extents" type="boolean" truevalue="-so" falsevalue="" checked="true"/> | |
39 </when> | |
40 </conditional> | |
41 </inputs> | |
42 <outputs> | |
43 <data name="output" format="txt" label="OGR Info file on ${on_string}"/> | |
44 </outputs> | |
45 <tests> | |
46 <test> | |
47 <param name="input1" value="custom.geo.json"/> | |
48 <param name="advanced" value="simple"/> | |
49 <output name="output" file="ogrinfo_test1_out2.txt" lines_diff="4"/> | |
50 </test> | |
51 <test> | |
52 <param name="input1" value="custom.geo.json"/> | |
53 <param name="advanced" value="advanced"/> | |
54 <param name="sql" value="sql"/> | |
55 <param name="sql_statement" value="SELECT * FROM OGRGeoJSON"/> <!-- WARNING the FROM here is fixed to pass travis test, the dataset number changes depending of the input --> | |
56 <param name="so" value="-so"/> | |
57 <output name="output" file="ogrinfo_test2_out2.txt" lines_diff="4"/> | |
58 </test> | |
59 </tests> | |
60 <help><![CDATA[ | |
61 ======== | |
62 Ogrinfo | |
63 ======== | |
64 | |
65 **What it does** | |
66 | |
67 The Ogrinfo program lists various information about an OGR supported vector dataset. | |
68 | |
69 | | |
70 | |
71 **How to use it** | |
72 | |
73 Select from history a suported vector file. | |
74 | |
75 | | |
76 | |
77 **Advanced options and sources** | |
78 | |
79 To see complete details and help section please check the official gdal sources. | |
80 | |
81 http://www.gdal.org | |
82 | |
83 http://www.gdal.org/ogr_utilities.html | |
84 | |
85 http://download.osgeo.org/gdal/workshop/foss4ge2015/workshop_gdal.pdf | |
86 ]]></help> | |
87 <expand macro="gdal_citation"/> | |
88 </tool> |