[gdal-dev] read non spatial tables using OGR driver

Frank Warmerdam warmerdam at pobox.com
Fri Jan 16 11:33:15 EST 2009


chen cui wrote:
> hello,
>  
> I know that using
> OGRSFDriverRegistrar::Open() we can access and open personal geodatabase 
> .mdb file.
> The table with geometry_column will be returned as Layers. But how about 
> non spatial tables inside this
> personal geodatabase .mdb file? Or we should use ODBC provider to access 
> those non spatial tables? OGR API does not provide this interface 
> function to access the non spatial tables. I need to read information 
> out of those tables.
> thank you in advance for your help.

Cui,

Your analysis is exactly right.  The PGeo (Personal Geodatabase) driver
will attempt to only present what it identifies as spatial layers in the
personal geodatabase as "OGR layers".  If you want raw access to all the
tables just use the ODBC driver.

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