[Gdal-dev] Imagine overviews option
Chapman, Martin
MChapman at sanz.com
Fri Sep 16 11:49:31 EDT 2005
Frank,
Can you add a new method that lets you specify the overview format type
(like void SetPyramidFormat(int nFormatTypeId); or something)? That
would be really handy. :)
Best regards,
Martin
P.S. GDAL Rules.
-----Original Message-----
From: gdal-dev-bounces at lists.maptools.org
[mailto:gdal-dev-bounces at lists.maptools.org] On Behalf Of Frank
Warmerdam
Sent: Friday, September 16, 2005 8:37 AM
To: Garrett Potts
Cc: gdal-dev at lists.maptools.org
Subject: Re: [Gdal-dev] Imagine overviews option
On 9/16/05, Garrett Potts <potts at cfl.rr.com> wrote:
> Hello Frank/All:
>
> I was told that you have added imagine overview building both creating
> internal overview and for creating a .rrd file. I didn't see an
> option string added that could specify either method. What is the
> generic interface to create either option for imagine output files.
Garrett,
By default now gdaladdo on .img file will create Imagine style overviews
instead of a GDAL .ovr file (TIFF). By default they are created in the
.img file unless they will be too big in which case a spill file (.ige)
is created.
If you set the HFA_USE_RRD configuration option to YES then
an external .rrd file will be used for the overviews instead of
putting them right in the .img file. Unfortunately, I did not include
an "options list" in the BuildOverviews() methods in GDAL so there is no
way to pass options like this into the overview building method. And
options passed to the original file creation are not preserved
to the point that overviews are build (which is not part of file
creation).
Config values can be set as environment variables, on the command line
with the --config switch, or in C using the CPLSetConfigOption()
function.
eg.
setenv HFA_USE_RRD=YES
or
gdaladdo --config HFA_USE_RRD YES abc.img
or
CPLSetConfigOption( "HFA_USE_RRD", "YES" );
...
Best regards,
--
---------------------------------------+--------------------------------
---------------------------------------+------
I set the clouds in motion - turn up | Frank Warmerdam,
warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
_______________________________________________
Gdal-dev mailing list
Gdal-dev at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/gdal-dev
More information about the Gdal-dev
mailing list