comparison gdalwarp.xml @ 0:485204e18759 draft

planemo upload for repository https://github.com/galaxyecology/tools-ecology/tools/gdal commit b964e8f7d7bb076d63a1c7bdfbbdba0f9074d517
author ecology
date Tue, 26 Feb 2019 11:51:43 -0500
parents
children daf66eda45b8
comparison
equal deleted inserted replaced
-1:000000000000 0:485204e18759
1 <tool id="gdal_gdalwarp" name="GDAL Warp" version="@VERSION@">
2 <description>image reprojection and warping utility</description>
3 <macros>
4 <import>gdal_macros.xml</import>
5 </macros>
6 <expand macro="gdal_requirements" />
7 <command detect_errors="exit_code"><![CDATA[
8 gdalwarp
9 -q
10 #for $i in $input
11 '$i'
12 #end for
13 -of '$of'
14 #if str($s_srs).strip()!=''
15 -s_srs '$s_srs'
16 #end if
17
18 #if str($t_srs).strip()!=''
19 -t_srs '$t_srs'
20 #end if
21
22 #if $settings.advanced=="advanced"
23
24 #if $settings.condi_tr.tr=='tr'
25 -tr $settings.condi_tr.xres $settings.condi_tr.yres
26 #end if
27
28 -to '$settings.to'
29
30 -wo '$settings.wo'
31
32 #if $settings.order!='no_value'
33 -order '$settings.order'
34 #end if
35
36 #if $settings.condi_resample.resample=='resampling'
37 -r $settings.condi_resample.r
38 #end if
39
40 #if $settings.condi_et.et=='et'
41 -et $settings.condi_et.et
42 #end if
43
44 #if $settings.condi_refine_gcps.refine_gcps=='refine_gcps'
45 -refine_gcps $settings.condi_refine_gcps.tolerance $settings.condi_refine_gcps.minimum_gcps
46 #end if
47
48 #if $settings.condi_te.te=='te'
49 -te $settings.condi_te.xmin $settings.condi_te.ymin $settings.condi_te.xmax $settings.condi_te.ymax
50 #end if
51
52 $settings.tps
53 $settings.rpc
54 $settings.geoloc
55
56 #if str($settings.srcnodata).strip()!=''
57 -srcnodata '$settings.srcnodata'
58 #end if
59
60 $settings.dstalpha
61 #end if
62
63 '$output'
64
65 ]]></command>
66
67 <inputs>
68 <expand macro="gdal_input_raster_multiple"/>
69 <expand macro="gdal_param_of"/>
70 <param name="s_srs" type="text" label="Source spatial reference set" value="" help="-s_srs def. The coordinate systems that can be passed are anything supported by the OGRSpatialReference."/>
71 <param name="t_srs" type="text" label="Target spatial reference set" value="" help="-t_srs srs_def. The coordinate systems that can be passed are anything supported by the OGRSpatialReference."/>
72 <conditional name="settings">
73 <expand macro="gdal_advanced_params_select"/>
74 <when value="advanced">
75 <expand macro="gdal_param_tr"/>
76 <param name="to" type="text" label="Transformer option" help="-to NAME=VALUE. Set a transformer option suitable to pass to GDALCreateGenImgProjTransformer2()." value=""/>
77 <param name="wo" type="text" label="Warp option" help="-wo NAME=VALUE. Set a warp option." value="" />
78 <param name="order" type="select" label="Order of polynomial" help="-order n. Order of polynomial used for warping (1 to 3). The default is to select a polynomial order based on the number of GCPs.">
79 <option value="no_value" selected="true">Select an order.</option>
80 <option value="1">1</option>
81 <option value="2">2</option>
82 <option value="3">3</option>
83 </param>
84 <param name="tps" type="boolean" label="Force use of thin plate spline transformer" help="-tps. Based on available GCPs" truevalue="-tps" falsevalue="" checked="false"/>
85 <param name="rpc" type="boolean" label="Force use of RPCs" help="-rpc" truevalue="-rpc" falsevalue="" checked="false"/>
86 <param name="geoloc" type="boolean" label="Force use of Geolocation Arrays." help="-geoloc" truevalue="-geoloc" falsevalue="" checked="false"/>
87 <param name="srcnodata" type="text" label="Set nodata masking values for input bands" help="-srcnodata value. Different values can be supplied for each band" value=""/>
88 <param name="dstalpha" type="boolean" label="Create an output alpha band to identify nodata (unset/transparent) pixels" help="-dstalpha" truevalue="-dstalpha" falsevalue="" checked="false"/>
89 <conditional name="condi_et">
90 <param name="et" label="Error threshold for transformation approximation" help="-et" type="select">
91 <option value="et">Use an error threshold, option -et</option>
92 <option value="no_et" selected="true">Don't use an error threshold</option>
93 </param>
94 <when value="no_et">
95 </when>
96 <when value="et">
97 <param name="et" type="float" help="-et In pixel units - defaults to 0.125, unless, the RPC_DEM warping option is specified, in which case, an exact transformer, i.e. err_threshold=0, will be used)" label="Error threshold" value=""/>
98 </when>
99 </conditional>
100 <conditional name="condi_refine_gcps">
101 <param name="refine_gcps" type="select" label="Refines the GCPs by automatically eliminating outliers" help="-refine_gcps. Set tolerence and minimum gcps">
102 <option value="no_refine_gcps" selected="true">Don't use the -refine_gcps option</option>
103 <option value="refine_gcps">Use the -refine_gcps option</option>
104 </param>
105 <when value="no_refine_gcps">
106 </when>
107 <when value="refine_gcps">
108 <param name="tolerance" type="float" label="tolerance" value="0" help="In pixel units if no projection is available, otherwise it is in SRS units"/>
109 <param name="minimum_gcps" type="float" label="minimum_gcps" value="0" help="If minimum_gcps is not provided, the minimum GCPs according to the polynomial model is used"/>
110 </when>
111 </conditional>
112 <expand macro="gdal_param_r"/>
113 <expand macro="gdal_param_te"/>
114 </when>
115 </conditional>
116 </inputs>
117
118 <outputs>
119 <expand macro="gdal_output_change_format"/>
120 </outputs>
121
122 <tests>
123 <test>
124 <param name="input" value="stere.tif"/>
125 <param name="of" value="GTiff" />
126 <param name="t_srs" value="EPSG:2154" />
127 <param name="advanced" value="simple"/>
128 <output name="output" file="stere_warp1.tiff"/>
129 </test>
130
131 <test>
132 <param name="input" value="tinyworld.tif"/>
133 <param name="t_srs" value="+proj=ortho +datum=WGS84" />
134 <param name="advanced" value="simple"/>
135 <output name="output" file="gdalwarp_test2_out.tif"/>
136 </test>
137
138 <test>
139 <param name="input" value="tinyworld.tif"/>
140 <param name="t_srs" value="+proj=ortho +datum=WGS84" />
141 <param name="advanced" value="advanced"/>
142 <param name="wo" value="SOURCE_EXTRA=125"/>
143 <output name="output" file="gdalwarp_test3_out.tif"/>
144 </test>
145
146
147 <test>
148 <param name="input" value="tinyworld.tif"/>
149 <param name="t_srs" value="+proj=ortho +datum=WGS84" />
150 <param name="advanced" value="advanced"/>
151 <param name="wo" value="SOURCE_EXTRA=125"/>
152 <param name="dstalpha" value="-dstalpha"/>
153 <param name="srcnodata" value="11 10 50"/>
154 <output name="output" file="gdalwarp_test4_out.tif"/>
155 </test>
156
157 <test>
158 <param name="input" value="small_east.dem,small_west.dem"/>
159 <param name="advanced" value="simple"/>
160 <output name="output" file="small_warpmerged.tif"/>
161 </test>
162
163 </tests>
164 <help><![CDATA[
165 ==========================
166 Gdalwarp
167 ==========================
168 **What it does**
169
170 The gdalwarp utility is an image mosaicing, reprojection and warping utility. The program can reproject to any supported projection, and can also apply GCPs stored with the image if the image is "raw" with control information.
171
172 |
173
174 **How to use it**
175
176 Add as much input files you want to warp.
177
178 Specifiy output format using short name (http://www.gdal.org/formats_list.html).
179
180 Specify source and target spatial reference set.
181
182 |
183
184 **Advanced options and sources**
185
186 To see complete details and help section please check the official gdal sources.
187
188 http://www.gdal.org
189
190 http://www.gdal.org/gdalwarp.html
191
192 Raster Processing Tutorial : https://trac.osgeo.org/gdal/wiki/UserDocs/RasterProcTutorial
193 ]]></help>
194 <expand macro="gdal_citation"/>
195 </tool>