comparison gdaladdo.xml @ 0:2241ff3e5b7c draft default tip

Uploaded
author mnhn65mo
date Thu, 02 Aug 2018 06:30:23 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:2241ff3e5b7c
1 <tool id="gdaladdo" name="GDAL addo" version="0.1.0">
2 <description>builds or rebuilds overview images</description>
3 <requirements>
4 <requirement type="package" version="2.1.0">gdal</requirement>
5 <requirement type="package" version="3.5.0">geos</requirement>
6 <requirement type="package" version="9b">jpeg</requirement>
7 <requirement type="package" version="1.5.90">libjpeg-turbo</requirement>
8 </requirements>
9 <command detect_errors="exit_code"><![CDATA[
10 gdaladdo '$input1'
11 -q
12 -ro
13 #if $levels!='e.g : 2 4 8 16'
14 #if '$levels'==''
15 -clean
16 #else
17 '$levels'
18 --config COMPRESS_OVERVIEW DEFLATE
19 && cp '$input1''.ovr' 'output_ovr'
20 #end if
21 #else
22 -clean
23 #end if
24 ]]></command>
25
26 <inputs>
27 <param type="data" name="input1" format="data" label="Gdal supported input file" help="http://www.gdal.org/formats_list.html"/>
28 <param name="levels" type="text" label="levels" help="A list of integral overview levels to build." value="e.g : 2 4 8 16"/>
29 </inputs>
30
31 <outputs>
32 <data format="tiff" name="output" from_work_dir="output_ovr" label="${input1.name}.ovr"/>
33 </outputs>
34
35 <tests>
36 <test> <!-- gdaladdo '/tmp/tmpTvLDdw/files/000/dataset_1.dat' -ro 2 4 8 16 -->
37 <param name="input1" value="stere.tif"/>
38 <param name="levels" value="2 4 8 16" />
39 <output name="output" file="stere.tif.ovr"/>
40 </test>
41 </tests>
42
43 <help><![CDATA[
44 ==========================
45 Gdaladdo
46 ==========================
47 **What it does**
48
49 The gdaladdo utility can be used to build or rebuild overview images for most supported file formats with one of several downsampling algorithms.
50
51 |
52
53 **How to use it**
54
55 Select a raster file from history and chose levels to build.
56
57 |
58
59 **Option**
60
61 *-levels*
62
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.
64
65 |
66
67 **Sources**
68
69 http://www.gdal.org
70
71 http://www.gdal.org/gdaladdo.html
72
73 Raster Processing Tutorial : https://trac.osgeo.org/gdal/wiki/UserDocs/RasterProcTutorial
74 ]]></help>
75 </tool>