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

author mnhn65mo
date Thu, 02 Aug 2018 06:30:23 -0400
line wrap: on
line source

<tool id="gdaladdo" name="GDAL addo" version="0.1.0">
    <description>builds or rebuilds overview images</description>
        <requirement type="package" version="2.1.0">gdal</requirement>
        <requirement type="package" version="3.5.0">geos</requirement>
        <requirement type="package" version="9b">jpeg</requirement>
        <requirement type="package" version="1.5.90">libjpeg-turbo</requirement>
    <command detect_errors="exit_code"><![CDATA[
        gdaladdo '$input1'
            #if $levels!='e.g : 2 4 8 16'
                #if '$levels'==''
                    --config COMPRESS_OVERVIEW DEFLATE
                    && cp '$input1''.ovr' 'output_ovr'
                #end if
            #end if
        <param type="data" name="input1" format="data" label="Gdal supported input file" help=""/>    
        <param name="levels" type="text" label="levels" help="A list of integral overview levels to build." value="e.g : 2 4 8 16"/>        
        <data format="tiff" name="output" from_work_dir="output_ovr" label="${}.ovr"/>
        <test> <!-- gdaladdo '/tmp/tmpTvLDdw/files/000/dataset_1.dat' -ro 2 4 8 16  -->
            <param name="input1" value="stere.tif"/>
            <param name="levels" value="2 4 8 16" />
            <output name="output" file="stere.tif.ovr"/>
**What it does**

The gdaladdo utility can be used to build or rebuild overview images for most supported file formats with one of several downsampling algorithms. 


**How to use it**        

Select a raster file from history and chose levels to build.




    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.



Raster Processing Tutorial :