[Gdal-dev] GDALAllRegister question.

Frank Warmerdam fwarmerdam at gmail.com
Tue Jan 18 09:36:56 EST 2005


On Mon, 17 Jan 2005 14:50:48 -0500, William Lyons
<wlyons at prologic-inc.com> wrote:
> Frank and List,
> 
> Is there any harm in calling GDALAllRegister() repeatedly?

William,

The low level GDAL driver register functions are written like:

    if( GDALGetDriverByName( "ECW" ) == NULL )
    {
        poDriver = new GDALDriver();
        ...

So the idea is that you can call registration functions,either directly or
via GDALAllRegister() multiple times with no ill effect.  

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



More information about the Gdal-dev mailing list