annotate gdalbuildvrt.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="gdalbuildvrt" name="GDAL Build VRT" version="0.1.0">
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
2 <description>builds a VRT from a list of datasets</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="9b">jpeg</requirement>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
6 <requirement type="package" version="1.5.90">libjpeg-turbo</requirement>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
7 </requirements>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
8 <command detect_errors="exit_code"><![CDATA[
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
9 gdalbuildvrt
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
10 '$output'
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 #if $settings.advanced=='advanced'
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
17 #unless $settings.b=='e.g : -b 1 -b 2 -b 3'
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
18 $settings.b
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
19 #end unless
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
20
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
21 #if $settings.condi_te.te=='te'
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
22 -te $settings.condi_te.xmin $settings.condi_te.ymin $settings.condi_te.xmax $settings.condi_te.ymax
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
23 #end if
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
24
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
25 #if $condi_tr.tr=='tr'
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
26 -tr $condi_tr.xres $condi_tr.yres
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
27 #end if
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
28
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
29 #if $settings.condi_resample.resample=='resampling'
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
30 -r $settings.condi_resample.r
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
31 #end if
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
32
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
33 #if $settings.condi_resolution.resolution=='chose_resolution'
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
34 -r $settings.condi_resolution.reso
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
35 #end if
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
36
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
37 #unless $settings.a_srs==''
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
38 -a_srs '$settings.a_srs'
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
39 #end unless
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
40
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
41 $settings.tap
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
42 $settings.addalpha
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
43 $settings.hidenodata
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
44 $settings.separate
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
45
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
46 #unless $settings.oo=='NAME=VALUE'
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
47 -oo '$settings.oo'
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
48 #end unless
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
49
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
50 $settings.allow_projection_difference
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
51
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
52 #unless $settings.tileindex=='field_name'
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
53 -tileindex '$settings.tileindex'
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
54 #end unless
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
55
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
56 #unless $settings.sb=='subdataset'
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
57 -sb '$settings.sb'
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
58 #end unless
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
59
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
60 #end if
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
61
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
62 ]]></command>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
63 <inputs>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
64 <repeat name="series" title="Input file">
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
65 <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
66 </repeat>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
67
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
68 <conditional name="settings">
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
69 <param name="advanced" type="select" label="Specify advanced parameters">
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
70 <option value="simple" selected="true">No, use program defaults.</option>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
71 <option value="advanced">Yes, see full parameter list.</option>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
72 </param>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
73 <when value="simple">
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
74 </when>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
75 <when value="advanced">
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
76
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
77 <param name="b" type="text" label="-b band" value="e.g : -b 1 -b 2 -b 3"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
78
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
79 <conditional name="condi_te">
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
80 <param name="te" type="select" label="-te">
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
81 <option value="no_te" selected="true">Don't use the -te option</option>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
82 <option value="te">Use the -te option</option>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
83 </param>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
84 <when value="no_te">
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
85 </when>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
86 <when value="te">
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
87 <param name="xmin" type="float" label="xmin" value="0"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
88 <param name="ymin" type="float" label="ymin" value="0"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
89 <param name="xmax" type="float" label="xmax" value="0"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
90 <param name="ymax" type="float" label="ymax" value="0"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
91 </when>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
92 </conditional>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
93
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 <conditional name="condi_resample">
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
108 <param label="-r" name="resample" type="boolean" truevalue="resampling" falsevalue="no_resampling" checked="false"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
109 <when value="resampling">
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
110 <param name="r" type="select" label="Reseampling algorithm" >
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
111 <option value="nearest" selected="true"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
112 <option value="bilinear"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
113 <option value="cubic"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
114 <option value="cubicspline"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
115 <option value="lanczos"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
116 <option value="average"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
117 <option value="mode"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
118 <option value="max"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
119 <option value="min"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
120 <option value="med">Median resampling</option>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
121 <option value="q1">First quartile resampling</option>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
122 <option value="q2">Third quartile resampling</option>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
123 </param>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
124 </when>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
125 <when value="no_resampling">
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
126 </when>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
127 </conditional>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
128
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
129 <conditional name="condi_resolution">
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
130 <param label="-resolution" name="resolution" type="boolean" truevalue="chose_resolution" falsevalue="no_resolution" checked="false"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
131 <when value="chose_resolution">
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
132 <param name="reso" type="select" label="Chose a resolution" >
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
133 <option value="highest" selected="true"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
134 <option value="lowest"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
135 <option value="average"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
136 <option value="user"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
137 </param>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
138 </when>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
139 <when value="no_resolution">
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
140 </when>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
141 </conditional>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
142
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
143 <param name="tap" type="boolean" truevalue="-tap" falsevalue="" checked="false" label="-tap"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
144 <param name="addalpha" type="boolean" truevalue="-addalpha" falsevalue="" checked="false" label="-addalpha"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
145 <param name="hidenodata" type="boolean" truevalue="-hidenodata" falsevalue="" checked="false" label="-hidenodata"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
146 <param name="separate" type="boolean" truevalue="-separate" falsevalue="" checked="false" label="-separate" />
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
147 <param name="allow_projection_difference" type="boolean" truevalue="-allow_projection_difference" falsevalue="" checked="false" label="-allow_projection_difference" />
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
148 <param name="a_srs" type="text" label="-a_srs srs_def" value=""/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
149 <param name="oo" type="text" label="-oo" value="NAME=VALUE" />
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
150 <param name="tileindex" type="text" label="-tileindex field_name" value="field_name"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
151 <param name="sb" type="text" label="-sb subdataset" value="subdataset"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
152
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
153 </when>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
154 </conditional>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
155 </inputs>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
156
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
157 <outputs>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
158 <data name="output" auto_format="true" label="${on_string}.vrt"/> <!--label="${input.name}.${of}-->
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
159 </outputs>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
160
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
161
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
162 <tests>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
163 <test>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
164 <param name="input" value="east.dem"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
165 <param name="input" value="west.dem"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
166 <param name="advanced" value="simple"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
167 <output name="output" file="dem.vrt" lines_diff="4"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
168 </test>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
169 </tests>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
170
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
171 <help><![CDATA[
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
172 ==========================
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
173 Gdalbuildvrt
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
174 ==========================
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
175 **What it does**
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
176
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
177 This program builds a VRT (Virtual Dataset) that is a mosaic of the list of input GDAL datasets.
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
178
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
179 If one GDAL dataset is made of several subdatasets and has 0 raster bands, all the subdatasets will be added to the VRT rather than the dataset itself.
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
180
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
181
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
182 gdalbuildvrt does some amount of checks to assure that all files that will be put in the resulting VRT have similar characteristics : number of bands, projection, color interpretation... If not, files that do not match the common characteristics will be skipped. (This is only true in the default mode, and not when using the -separate option)
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
183
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
184
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
185 If there is some amount of spatial overlapping between files, the order of files appearing in the list of source matter: files that are listed at the end are the ones from which the content will be fetched. Note that nodata will be taken into account to potentially fetch data from less prioritary datasets, but currently, alpha channel is not taken into account to do alpha compositing (so a source with alpha=0 appearing on top of another source will override is content). This might be changed in later versions.
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
186
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
187
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
188 This utility is somehow equivalent to the gdal_vrtmerge.py utility and is build by default in GDAL 1.6.1.
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
189
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
190 |
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
191
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
192 **How to use it**
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
193
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
194 Add as much input files you want to use to create the VRT.
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
195
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
196 |
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
197
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
198 **Other options, advanced usage**
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
199
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
200 *-tileindex*
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
201
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
202 Use the specified value as the tile index field, instead of the default value with is 'location'.
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
203
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
204 |
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
205
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
206 *-resolution {highest|lowest|average|user}*
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
207
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
208 In case the resolution of all input files is not the same, the -resolution flag enables the user to control the way the output resolution is computed. 'average' is the default. 'highest' will pick the smallest values of pixel dimensions within the set of source rasters. 'lowest' will pick the largest values of pixel dimensions within the set of source rasters. 'average' will compute an average of pixel dimensions within the set of source rasters. 'user' is new in GDAL 1.7.0 and must be used in combination with the -tr option to specify the target resolution.
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
209
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
210 |
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
211
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
212 *-tr xres yres*
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
213
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
214 (starting with GDAL 1.7.0) set target resolution. The values must be expressed in georeferenced units. Both must be positive values. Specifying those values is of course incompatible with highest|lowest|average values for -resolution option.
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
215
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
216 |
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
217
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
218 *-tap*
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
219
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
220 (target aligned pixels) align the coordinates of the extent of the output file to the values of the -tr, such that the aligned extent includes the minimum extent.
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
221
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
222 |
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
223
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
224 *-te xmin ymin xmax ymax*
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
225
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
226 (starting with GDAL 1.7.0) set georeferenced extents of VRT file. The values must be expressed in georeferenced units. If not specified, the extent of the VRT is the minimum bounding box of the set of source rasters.
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
227
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
228 |
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
229
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
230 *-addalpha*
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
231
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
232 Adds an alpha mask band to the VRT when the source raster have none. Mainly useful for RGB sources (or grey-level sources). The alpha band is filled on-the-fly with the value 0 in areas without any source raster, and with value 255 in areas with source raster. The effect is that a RGBA viewer will render the areas without source rasters as transparent and areas with source rasters as opaque. This option is not compatible with -separate.
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
233
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
234 |
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
235
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
236 *-hidenodata*
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
237
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
238 Even if any band contains nodata value, giving this option makes the VRT band not report the NoData. Useful when you want to control the background color of the dataset. By using along with the -addalpha option, you can prepare a dataset which doesn't report nodata value but is transparent in areas with no data.
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 *-b band*
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
243
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
244 Select an input band to be processed. Bands are numbered from 1. If input bands not set all bands will be added to vrt. Multiple -b switches may be used to select a set of input bands.
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
245
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
246 |
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
247
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
248 *-sd subdataset*
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
249
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
250 If the input dataset contains several subdatasets use a subdataset with the specified number (starting from 1). This is an alternative of giving the full subdataset name as an input.
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
251
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
252 |
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
253
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
254 *-separate*
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
255
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
256 Place each input file into a separate band. In that case, only the first band of each dataset will be placed into a new band. Contrary to the default mode, it is not required that all bands have the same datatype.
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 *-allow_projection_difference*
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
261
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
262 When this option is specified, the utility will accept to make a VRT even if the input datasets have not the same projection. Note: this does not mean that they will be reprojected. Their projection will just be ignored.
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 *-a_srs srs_def*
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
267
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
268 Override the projection for the output file. 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.
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 *-r {nearest (default),bilinear,cubic,cubicspline,lanczos,average,mode}*
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
273
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
274 Select a resampling algorithm.
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 *-oo NAME=VALUE*
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
279
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
280 Dataset open option (format specific)
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 **Sources**
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
285
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
286 http://www.gdal.org
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
287
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
288 http://www.gdal.org/gdalbuildvrt.html
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
289
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
290 Raster Processing Tutorial : https://trac.osgeo.org/gdal/wiki/UserDocs/RasterProcTutorial
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
291 ]]></help>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
292 </tool>