[Gdal-dev] Refresh a datasource?

Frank Warmerdam warmerdam at pobox.com
Sat Nov 4 17:34:43 EST 2006


Craig Miller wrote:
> Is there a way to tell an OGRDataSource to refresh it's list of layers to
> reflect additional tables added to a postgis database, feature types added
> to a file based format, etc?  It seems like it would be kind of expensive to
> close and re-open the connection to the database just to get a current list
> of tables.

Craig,

Unfortunately there is no mechanism to do this.  Basically you are left
having to destroy and recreate the datasource.

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    | President OSGeo, http://osgeo.org




More information about the Gdal-dev mailing list