comparison gdal_translate.xml @ 3:58c9f3e5cee9 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:28:36 -0400
parents 0c1062baa9a2
children
comparison
equal deleted inserted replaced
2:0c1062baa9a2 3:58c9f3e5cee9
2 <description>converts raster data between different formats.</description> 2 <description>converts raster data between different formats.</description>
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
8 <command detect_errors="exit_code"><![CDATA[ 7 <command detect_errors="exit_code"><![CDATA[
9 gdal_translate 8 gdal_translate
10 9
11 '$typeinput.input1' '$output' 10 '$typeinput.input1' '$output'
12 #if $settings.advanced=='advanced' 11 #if $settings.advanced=='advanced'
61 #end if 60 #end if
62 61
63 #if str($settings.mo).strip()!='' 62 #if str($settings.mo).strip()!=''
64 -mo '$settings.mo' 63 -mo '$settings.mo'
65 #end if 64 #end if
66
67 ## #if str($settings.oo).strip()!=''
68 ## -oo '$settings.oo'
69 ## #end if
70 65
71 #if str($settings.a_srs).strip()!='' 66 #if str($settings.a_srs).strip()!=''
72 -a_srs '$settings.a_srs' 67 -a_srs '$settings.a_srs'
73 #end if 68 #end if
74 69
77 -of '$of' 72 -of '$of'
78 73
79 ]]></command> 74 ]]></command>
80 <inputs> 75 <inputs>
81 <conditional name="typeinput"> 76 <conditional name="typeinput">
82 <param type="select" name="input" label="Gdal raster supported input file" help="Choose between GTiff,VRT or netCDF. To perform a translate on a subdataset use the gdal information option 'create list of potential subdatasets' to have the usable subdatasets in a file. Then select this file and the subdataset you want to use."> 77 <param type="select" name="input" format="data" label="Gdal raster supported input file" help="Choose between GTiff,VRT or netCDF. To perform a translate on a subdataset use the gdal information option 'create list of potential subdatasets' to have the usable subdatasets in a file. Then select this file and the subdataset you want to use.">
83 <option value="dataset">Data file</option> 78 <option value="dataset">Data file</option>
84 <option value="subdataset">Subdataset</option> 79 <option value="subdataset">Subdataset</option>
85 </param> 80 </param>
86 <when value="dataset"> 81 <when value="dataset">
87 <param type="data" label="Input data" format="data" help="Select a file you want to convert in GTiff, VRT or netCDF" name="input1"/> 82 <param type="data" label="Input data" format="data" help="Select a file you want to convert in GTiff, VRT or netCDF" name="input1"/>
111 <expand macro="gdal_param_r"/> 106 <expand macro="gdal_param_r"/>
112 <expand macro="gdal_param_stats"/> 107 <expand macro="gdal_param_stats"/>
113 <expand macro="gdal_param_norat"/> 108 <expand macro="gdal_param_norat"/>
114 <expand macro="gdal_param_co"/> 109 <expand macro="gdal_param_co"/>
115 <param name="mo" type="text" label="Pass a metadata key and value to set on the output dataset" help="-mo META-TAG=VALUE" value="" /> 110 <param name="mo" type="text" label="Pass a metadata key and value to set on the output dataset" help="-mo META-TAG=VALUE" value="" />
116
117 <!-- commented as the gdalversion need to be upgraded
118 <param name="oo" type="text" label="-oo" value="NAME=VALUE" />
119 <expand macro="gdal_param_oo"/>
120 -->
121
122 <conditional name="condi_expand"> 111 <conditional name="condi_expand">
123 <param name="expand" type="select" label="Expose a dataset with 1 band with a color table" help="-expand gray|rgb|rgba" > 112 <param name="expand" type="select" label="Expose a dataset with 1 band with a color table" help="-expand gray|rgb|rgba" >
124 <option value="no_expand" selected="true">Don't use the -expand option</option> 113 <option value="no_expand" selected="true">Don't use the -expand option</option>
125 <option value="expand">Use the -expand option</option> 114 <option value="expand">Use the -expand option</option>
126 </param> 115 </param>
194 <option value="" selected="true">Default, no error</option> 183 <option value="" selected="true">Default, no error</option>
195 <option value="-epo">-epo : Error when partially outside</option> 184 <option value="-epo">-epo : Error when partially outside</option>
196 <option value="-eco">-eco : Error when completely outside</option> 185 <option value="-eco">-eco : Error when completely outside</option>
197 </param> 186 </param>
198 <param name="a_srs" type="text" label="Override the projection" help="-a_srs. The srs_def may be any of the usual GDAL/OGR forms, complete WKT, PROJ.4, EPSG:n or a file containing the WKT. No reprojection is done" value="" /> 187 <param name="a_srs" type="text" label="Override the projection" help="-a_srs. The srs_def may be any of the usual GDAL/OGR forms, complete WKT, PROJ.4, EPSG:n or a file containing the WKT. No reprojection is done" value="" />
199
200 <!--
201 <param name="sds" type="boolean" truevalue="-sds" falsevalue="" checked="false" label="-sds" help="Copy all subdatasets of this file to individual output files. Use with formats like HDF or OGDI that have subdatasets. The output file naming scheme has changed in GDAL 1.11 (e.g. ofile_1.tif, ofile_2.tif)."/>
202 Ici il y a surement une gestion de fichiers de sorties multiple à faire
203 -->
204
205 </when> 188 </when>
206 </conditional> 189 </conditional>
207 </inputs> 190 </inputs>
208
209 <outputs> 191 <outputs>
210 <expand macro="gdal_output_change_format"/> 192 <expand macro="gdal_output_change_format"/>
211 </outputs> 193 </outputs>
212
213
214 <tests> 194 <tests>
215 <test> 195 <test>
216 <param name="input1" value="tinyworld.png"/> 196 <param name="input1" value="tinyworld.png"/>
217 <param name="of" value="GTiff" /> 197 <param name="of" value="GTiff" />
218 <param name="advanced" value="advanced"/> 198 <param name="advanced" value="advanced"/>
223 <param name="lry" value="-90"/> 203 <param name="lry" value="-90"/>
224 <param name="a_srs" value="WGS84"/> 204 <param name="a_srs" value="WGS84"/>
225 <output name="output" file="tinyworld.tif"/> 205 <output name="output" file="tinyworld.tif"/>
226 </test> 206 </test>
227 </tests> 207 </tests>
228
229 <help><![CDATA[ 208 <help><![CDATA[
230 =============== 209 ===============
231 Gdal_translate 210 Gdal_translate
232 =============== 211 ===============
233 212