annotate gdaladdo.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="gdaladdo" name="GDAL addo" version="0.1.0">
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
2 <description>builds or rebuilds overview images</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 gdaladdo '$input1'
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
11 -q
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
12 -ro
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
13 #if $levels!='e.g : 2 4 8 16'
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
14 #if '$levels'==''
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
15 -clean
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
16 #else
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
17 '$levels'
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
18 --config COMPRESS_OVERVIEW DEFLATE
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
19 && cp '$input1''.ovr' 'output_ovr'
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
20 #end if
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
21 #else
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
22 -clean
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
23 #end if
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
24 ]]></command>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
25
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
26 <inputs>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
27 <param type="data" name="input1" format="data" label="Gdal supported input file" help="http://www.gdal.org/formats_list.html"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
28 <param name="levels" type="text" label="levels" help="A list of integral overview levels to build." value="e.g : 2 4 8 16"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
29 </inputs>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
30
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
31 <outputs>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
32 <data format="tiff" name="output" from_work_dir="output_ovr" label="${input1.name}.ovr"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
33 </outputs>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
34
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
35 <tests>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
36 <test> <!-- gdaladdo '/tmp/tmpTvLDdw/files/000/dataset_1.dat' -ro 2 4 8 16 -->
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
37 <param name="input1" value="stere.tif"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
38 <param name="levels" value="2 4 8 16" />
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
39 <output name="output" file="stere.tif.ovr"/>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
40 </test>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
41 </tests>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
42
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
43 <help><![CDATA[
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
44 ==========================
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
45 Gdaladdo
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
46 ==========================
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
47 **What it does**
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
48
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
49 The gdaladdo utility can be used to build or rebuild overview images for most supported file formats with one of several downsampling algorithms.
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
50
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
51 |
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
52
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
53 **How to use it**
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
54
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
55 Select a raster file from history and chose levels to build.
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
56
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
57 |
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
58
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
59 **Option**
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
60
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
61 *-levels*
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
62
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
63 A list of integral overview levels to build. Ignored with -clean option. Starting with GDAL 2.3, levels are no longer required to build overviews. In which case, appropriate overview power-of-two factors will be selected until the smallest overview is smaller than the value of the -minsize switch.
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
64
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
65 |
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
66
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
67 **Sources**
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
68
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
69 http://www.gdal.org
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
70
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
71 http://www.gdal.org/gdaladdo.html
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
72
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
73 Raster Processing Tutorial : https://trac.osgeo.org/gdal/wiki/UserDocs/RasterProcTutorial
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
74 ]]></help>
2241ff3e5b7c Uploaded
mnhn65mo
parents:
diff changeset
75 </tool>