annotate gdalwarp.xml @ 0:2241ff3e5b7c draft default tip

Uploaded
author mnhn65mo
date Thu, 02 Aug 2018 06:30:23 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
1 <tool id="gdalwarp" name="GDAL Warp" version="0.1.0">
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
2 <description>image reprojection and warping utility</description>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
3 <requirements>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
4 <requirement type="package" version="2.1.0">gdal</requirement>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
5 <requirement type="package" version="3.5.0">geos</requirement>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
6 <requirement type="package" version="9b">jpeg</requirement>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
7 <requirement type="package" version="1.5.90">libjpeg-turbo</requirement>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
8 </requirements>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
9 <command detect_errors="exit_code"><![CDATA[
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
10 gdalwarp
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
11 -q
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
12 #for $i, $s in enumerate( $series )
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
13 '${s.input}'
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
14 #end for
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
15
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
16 #unless $of==''
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
17 -of '$of'
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
18 #end unless
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
19
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
20 #unless $s_srs==''
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
21 -s_srs '$s_srs'
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
22 #end unless
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
23
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
24 #unless $t_srs==''
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
25 -t_srs '$t_srs'
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
26 #end unless
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
27
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
28 #if $settings.advanced=="advanced"
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
29
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
30 #if $settings.condi_tr.tr=='tr'
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
31 -tr $settings.condi_tr.xres $settings.condi_tr.yres
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
32 #end if
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
33
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
34 #unless $settings.to=='NAME=VALUE'
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
35 -to '$settings.to'
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
36 #end unless
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
37
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
38 #unless $settings.wo=='NAME=VALUE'
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
39 -wo '$settings.wo'
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
40 #end unless
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
41
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
42 #unless $settings.order=='no_value'
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
43 -order '$settings.order'
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
44 #end unless
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
45
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
46 #if $settings.condi_resample.resample=='resampling'
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
47 -r $settings.condi_resample.r
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
48 #end if
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
49
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
50 #if $settings.condi_et.et=='et'
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
51 -et $settings.condi_et.et
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
52 #end if
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
53
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
54 #if $settings.condi_refine_gcps.refine_gcps=='refine_gcps'
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
55 -refine_gcps $settings.condi_refine_gcps.tolerance $settings.condi_refine_gcps.minimum_gcps
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
56 #end if
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
57
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
58 #if $settings.condi_te.te=='te'
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
59 -te $settings.condi_te.xmin $settings.condi_te.ymin $settings.condi_te.xmax $settings.condi_te.ymax
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
60 #end if
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
61
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
62 $settings.tps
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
63 $settings.rpc
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
64 $settings.geoloc
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
65
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
66 #unless $settings.srcnodata==''
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
67 -srcnodata '$settings.srcnodata'
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
68 #end unless
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
69
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
70 $settings.dstalpha
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
71 #end if
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
72
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
73 '$output'
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
74
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
75 ]]></command>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
76
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
77 <inputs>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
78 <repeat name="series" title="Input file">
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
79 <param type="data" name="input" format="data" label="Gdal supported input file" help="http://www.gdal.org/formats_list.html"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
80 </repeat>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
81
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
82 <param name="of" type="text" label="Output format -of" value="" help="Select the output format. The default is GeoTIFF (GTiff). Use the short format name. http://www.gdal.org/formats_list.html"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
83 <param name="s_srs" type="text" label="-s_srs Source spatial reference set" value="" help="The coordinate systems that can be passed are anything supported by the OGRSpatialReference."/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
84 <param name="t_srs" type="text" label="-t_srs Target spatial reference set" value="" help="The coordinate systems that can be passed are anything supported by the OGRSpatialReference."/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
85
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
86 <conditional name="settings">
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
87 <param name="advanced" type="select" label="Specify advanced parameters">
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
88 <option value="simple" selected="true">No, use program defaults.</option>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
89 <option value="advanced">Yes, see full parameter list.</option>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
90 </param>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
91 <when value="simple">
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
92 </when>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
93 <when value="advanced">
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
94 <conditional name="condi_tr">
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
95 <param name="tr" type="select" label="-tr">
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
96 <option value="no_tr" selected="true">Don't use the -tr option</option>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
97 <option value="tr">Use the -tr option</option>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
98 </param>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
99 <when value="no_tr">
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
100 </when>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
101 <when value="tr">
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
102 <param name="xres" type="float" label="xres" value="0"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
103 <param name="yres" type="float" label="yres" value="0"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
104 </when>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
105 </conditional>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
106
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
107
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
108 <param name="to" type="text" label="-to" value="NAME=VALUE"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
109 <param name="wo" type="text" label="-wo" value="NAME=VALUE" />
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
110 <param name="order" type="select" label="-order n">
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
111 <option value="no_value" selected="true">Select an order.</option>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
112 <option value="1">1</option>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
113 <option value="2">2</option>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
114 <option value="3">3</option>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
115 </param>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
116 <param name="tps" type="boolean" label="-tps" truevalue="-tps" falsevalue="" checked="false"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
117 <param name="rpc" type="boolean" label="-rpc" truevalue="-rpc" falsevalue="" checked="false"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
118 <param name="geoloc" type="boolean" label="-geoloc" truevalue="-geoloc" falsevalue="" checked="false"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
119 <param name="srcnodata" type="text" label="-srcnodata value" value=""/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
120 <param name="dstalpha" type="boolean" label="-dstalpha" truevalue="-dstalpha" falsevalue="" checked="false"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
121
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
122 <conditional name="condi_et">
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
123 <param name="et" label="-et" type="boolean" truevalue="et" falsevalue="no_et" checked="false"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
124 <when value="no_et">
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
125 </when>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
126 <when value="et">
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
127 <param name="et" type="float" label="-et error threshold" value=""/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
128 </when>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
129 </conditional>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
130
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
131 <conditional name="condi_refine_gcps">
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
132 <param name="refine_gcps" type="select" label="-refine_gcps">
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
133 <option value="no_refine_gcps" selected="true">Don't use the -refine_gcps option</option>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
134 <option value="refine_gcps">Use the -refine_gcps option</option>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
135 </param>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
136 <when value="no_refine_gcps">
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
137 </when>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
138 <when value="refine_gcps">
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
139 <param name="tolerance" type="float" label="tolerance" value="0"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
140 <param name="minimum_gcps" type="float" label="minimum_gcps" value="0"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
141 </when>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
142 </conditional>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
143
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
144 <conditional name="condi_resample">
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
145 <param name="resample" label="-r" type="boolean" truevalue="resampling" falsevalue="no_resampling" checked="false"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
146 <when value="resampling">
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
147 <param name="r" type="select" label="Reseampling algorithm" >
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
148 <option value="nearest" selected="true"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
149 <option value="bilinear"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
150 <option value="cubic"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
151 <option value="cubicspline"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
152 <option value="lanczos"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
153 <option value="average"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
154 <option value="mode"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
155 <option value="max"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
156 <option value="min"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
157 <option value="med">Median resampling</option>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
158 <option value="q1">First quartile resampling</option>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
159 <option value="q2">Third quartile resampling</option>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
160 </param>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
161 </when>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
162 <when value="no_resampling">
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
163 </when>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
164 </conditional>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
165
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
166 <conditional name="condi_te">
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
167 <param name="te" type="select" label="-te">
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
168 <option value="no_te" selected="true">Don't use the -te option</option>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
169 <option value="te">Use the -te option</option>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
170 </param>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
171 <when value="no_te">
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
172 </when>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
173 <when value="te">
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
174 <param name="xmin" type="float" label="xmin" value="0"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
175 <param name="ymin" type="float" label="ymin" value="0"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
176 <param name="xmax" type="float" label="xmax" value="0"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
177 <param name="ymax" type="float" label="ymax" value="0"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
178 </when>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
179 </conditional>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
180
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
181 </when>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
182 </conditional>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
183
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
184 </inputs>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
185
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
186 <outputs>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
187 <data name="output" auto_format="true" label="${on_string}.${of}"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
188 </outputs>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
189
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
190 <tests>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
191 <test>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
192 <param name="input" value="stere.tif"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
193 <param name="of" value="Gtiff" />
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
194 <param name="t_srs" value="EPSG:2154" />
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
195 <param name="advanced" value="simple"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
196 <output name="output" file="stere_warp1.tiff"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
197 </test>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
198
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
199 <test>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
200 <param name="input" value="geoworld.tif"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
201 <param name="t_srs" value="+proj=ortho +datum=WGS84" />
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
202 <param name="advanced" value="simple"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
203 <output name="output" file="ortho1.tif"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
204 </test>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
205
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
206 <test>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
207 <param name="input" value="geoworld.tif"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
208 <param name="t_srs" value="+proj=ortho +datum=WGS84" />
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
209 <param name="advanced" value="advanced"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
210 <param name="wo" value="SOURCE_EXTRA=125"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
211 <output name="output" file="ortho2.tif"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
212 </test>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
213
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
214 <test>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
215 <param name="input" value="geoworld.tif"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
216 <param name="t_srs" value="+proj=ortho +datum=WGS84" />
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
217 <param name="advanced" value="advanced"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
218 <param name="wo" value="SOURCE_EXTRA=125"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
219 <param name="dstalpha" value="-dstalpha"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
220 <param name="srcnodata" value="11 10 50"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
221 <output name="output" file="ortho3.tif"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
222 </test>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
223
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
224 <test>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
225 <param name="input" value="west.dem"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
226 <param name="input" value="east.dem"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
227 <param name="advanced" value="simple"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
228 <output name="output" file="warpmerged.tif"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
229 </test>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
230
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
231 </tests>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
232 <help><![CDATA[
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
233 ==========================
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
234 Gdalwarp
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
235 ==========================
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
236 **What it does**
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
237
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
238 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.
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
239
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
240 |
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
241
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
242 **How to use it**
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
243
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
244 Add as much input files you want to warp.
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
245
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
246 Specifiy output format using short name (http://www.gdal.org/formats_list.html).
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
247
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
248 Specify source and target spatial reference set.
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
249
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
250 |
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
251
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
252 **Other options, advanced usage**
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
253
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
254 *-to NAME=VALUE*
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
255
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
256 set a transformer option suitable to pass to GDALCreateGenImgProjTransformer2().
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
257
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
258 |
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
259
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
260 *-order n*
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
261
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
262 order of polynomial used for warping (1 to 3). The default is to select a polynomial order based on the number of GCPs.
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
263
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
264 |
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
265
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
266 *-tps*
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
267
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
268 Force use of thin plate spline transformer based on available GCPs.
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
269
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
270 |
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
271
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
272 *-rpc*
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
273
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
274 Force use of RPCs.
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
275
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
276 |
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
277
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
278 *-geoloc*
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
279
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
280 Force use of Geolocation Arrays.
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
281
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
282 |
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
283
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
284 *-et err_threshold*
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
285
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
286 error threshold for transformation approximation (in pixel units - defaults to 0.125, unless, starting with GDAL 2.1, the RPC_DEM warping option is specified, in which case, an exact transformer, i.e. err_threshold=0, will be used).
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
287
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
288 |
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
289
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
290 *-refine_gcps tolerance minimum_gcps*
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
291
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
292 refines the GCPs by automatically eliminating outliers. Outliers will be eliminated until minimum_gcps are left or when no outliers can be detected. The tolerance is passed to adjust when a GCP will be eliminated. Not that GCP refinement only works with polynomial interpolation. The tolerance is in pixel units if no projection is available, otherwise it is in SRS units. If minimum_gcps is not provided, the minimum GCPs according to the polynomial model is used.
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
293
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
294 |
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
295
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
296 *-te xmin ymin xmax ymax*
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
297
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
298 set georeferenced extents of output file to be created (in target SRS by default, or in the SRS specified with -te_srs)
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
299
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
300 |
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
301
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
302 *-tr xres yres*
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
303
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
304 set output file resolution (in target georeferenced units)
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
305
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
306 |
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
307
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
308 *-wo "NAME=VALUE"*
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
309
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
310 Set a warp option. The GDALWarpOptions**papszWarpOptions docs show all options. Multiple -wo options may be listed.
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
311
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
312 |
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
313
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
314 *-r resampling_method*
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
315
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
316 Resampling method to use. Available methods are
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
317
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
318 *near*
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
319
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
320 nearest neighbour resampling (default, fastest algorithm, worst interpolation quality).
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
321
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
322 *bilinear*
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
323
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
324 bilinear resampling.
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
325
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
326 *cubic*
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
327
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
328 cubic resampling.
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
329
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
330 *cubicspline*
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
331
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
332 cubic spline resampling.
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
333
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
334 *lanczos*
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
335
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
336 Lanczos windowed sinc resampling.
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
337
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
338 *average*
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
339
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
340 average resampling, computes the average of all non-NODATA contributing pixels.
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
341
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
342 *mode*
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
343
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
344 mode resampling, selects the value which appears most often of all the sampled points.
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
345
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
346 *max*
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
347
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
348 maximum resampling, selects the maximum value from all non-NODATA contributing pixels.
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
349
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
350 *min*
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
351
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
352 minimum resampling, selects the minimum value from all non-NODATA contributing pixels.
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
353
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
354 *med*
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
355
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
356 median resampling, selects the median value of all non-NODATA contributing pixels.
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
357
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
358 *q1*
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
359
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
360 first quartile resampling, selects the first quartile value of all non-NODATA contributing pixels.
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
361
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
362 *q3*
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
363
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
364 third quartile resampling, selects the third quartile value of all non-NODATA contributing pixels.
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
365
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
366 |
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
367
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
368 *-srcnodata value [value...]*
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
369
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
370 Set nodata masking values for input bands (different values can be supplied for each band). If more than one value is supplied all values should be quoted to keep them together as a single operating system argument. Masked values will not be used in interpolation. Use a value of None to ignore intrinsic nodata settings on the source dataset.
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
371
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
372 |
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
373
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
374 *-dstalpha*
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
375
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
376 Create an output alpha band to identify nodata (unset/transparent) pixels.
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
377
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
378 |
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
379
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
380 **Sources**
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
381
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
382 http://www.gdal.org
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
383
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
384 http://www.gdal.org/gdalwarp.html
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
385
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
386 Raster Processing Tutorial : https://trac.osgeo.org/gdal/wiki/UserDocs/RasterProcTutorial
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
387 ]]></help>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
388 </tool>