comparison ogrinfo.xml @ 2:5b2417aa0b62 draft

planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/gdal commit d2c064afb4680f459012473e4de8653079e32c15
author ecology
date Thu, 13 Jun 2019 11:29:15 -0400
parents 7bdf6ee695a8
children
comparison
equal deleted inserted replaced
1:7bdf6ee695a8 2:5b2417aa0b62
3 <macros> 3 <macros>
4 <import>gdal_macros.xml</import> 4 <import>gdal_macros.xml</import>
5 </macros> 5 </macros>
6 <expand macro="gdal_requirements" /> 6 <expand macro="gdal_requirements" />
7 <command detect_errors="exit_code"><![CDATA[ 7 <command detect_errors="exit_code"><![CDATA[
8 ogrinfo -ro '$input1' -al 8 ogrinfo -ro
9 #if $settings.advanced=='advanced' 9 #if $input1.is_of_type("shp")
10 #if $settings.condi_sql.sql=='sql': 10 ${os.path.join( $input1.extra_files_path, 'shapefile.shp' )}
11 #if str($settings.condi_sql.sql_statement).strip()!='': 11 #else
12 -sql '$settings.condi_sql.sql_statement' 12 '$input1'
13 #end if 13 #end if
14 -al
15 #if $settings.advanced=='advanced'
16 #if $settings.condi_sql.sql=='sql':
17 #if str($settings.condi_sql.sql_statement).strip()!='':
18 -sql '$settings.condi_sql.sql_statement'
14 #end if 19 #end if
15 $settings.so
16 #end if 20 #end if
21 $settings.so
22 #end if
17 > '$output' 23 > '$output'
18 ]]></command> 24 ]]></command>
19 <inputs> 25 <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"/> 26 <param type="data" name="input1" format="xml,txt,netcdf,shp" label="Gdal supported vector input file" help="Currently supported format are GeoJSON GML KML, WFS and Shapefile"/>
21 <conditional name="settings"> 27 <conditional name="settings">
22 <expand macro="gdal_advanced_params_select"/> 28 <expand macro="gdal_advanced_params_select"/>
23 <when value="advanced"> 29 <when value="advanced">
24 <conditional name="condi_sql"> 30 <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"> 31 <param name="sql" type="select" label="Use a sql query on the file" help="-sql. Execute the indicated SQL statement and return the result">
44 </outputs> 50 </outputs>
45 <tests> 51 <tests>
46 <test> 52 <test>
47 <param name="input1" value="custom.geo.json"/> 53 <param name="input1" value="custom.geo.json"/>
48 <param name="advanced" value="simple"/> 54 <param name="advanced" value="simple"/>
49 <output name="output" file="ogrinfo_test1_out2.txt" lines_diff="82"/> 55 <output name="output" file="ogrinfo_test1_out2.txt" lines_diff="85"/>
50 </test> 56 </test>
51 <!-- 57 <test>
52 #Layername OGRGeoJSON is basicaly input filename, so in Galaxy it become "dataset_X". I couldn't create a test using the sql option, "X" will change every time we add or remove a testfile. 58 <param name="input1" value="shp_compositefiles/shapefile.html" ftype="shp">
53 <test> 59 <composite_data value="shp_compositefiles/shapefile.shp"/>
54 <param name="input1" value="custom.geo.json"/> 60 <composite_data value="shp_compositefiles/shapefile.shx"/>
55 <param name="advanced" value="advanced"/> 61 <composite_data value="shp_compositefiles/shapefile.dbf"/>
56 <param name="sql" value="sql"/> 62 <composite_data value="shp_compositefiles/shapefile.sbn"/>
57 <param name="sql_statement" value="SELECT * FROM OGRGeoJSON"/> 63 <composite_data value="shp_compositefiles/shapefile.sbx"/>
58 <param name="so" value="-so"/> 64 </param>
59 <output name="output" file="ogrinfo_test2_out2.txt" lines_diff="4"/> 65 <param name="advanced" value="simple"/>
66 <output name="output" file="ogrinfo_shp.txt" lines_diff="2"/>
60 </test> 67 </test>
61 --> 68 </tests>
62 </tests>
63 <help><![CDATA[ 69 <help><![CDATA[
64 ======== 70 ========
65 Ogrinfo 71 Ogrinfo
66 ======== 72 ========
67 73
81 87
82 To see complete details and help section please check the official gdal sources. 88 To see complete details and help section please check the official gdal sources.
83 89
84 http://www.gdal.org 90 http://www.gdal.org
85 91
86 http://www.gdal.org/ogr_utilities.html 92 https://gdal.org/programs/ogrinfo.html
87 93
88 http://download.osgeo.org/gdal/workshop/foss4ge2015/workshop_gdal.pdf 94 http://download.osgeo.org/gdal/workshop/foss4ge2015/workshop_gdal.pdf
89 ]]></help> 95 ]]></help>
90 <expand macro="gdal_citation"/> 96 <expand macro="gdal_citation"/>
91 </tool> 97 </tool>