[gdal-dev] ogrinfo and PGeo Driver for .mdb file, on Ubuntu

Chris Green chris.green at ibstv.co.uk
Mon Oct 24 08:35:38 EDT 2011


Hi List

 

I'm hoping someone can help me make ogr work under Linux with the PGeo
driver, so I can read an ESRI Personal Database .mdb file into Mapserver. I
can see from old posts that the basic problem is that MDBTools is a bit
'flaky' and needs a DSN based connection rather than connecting direct to
the .mdb data.

 

I have been trying to follow the instructions in
http://www.gdal.org/ogr/drv_pgeo.html . Having installed unixODBC and
MDBTools, I configured the odbcinst.ini and odbc.ini files as suggested and
it seems that I have partial success because when I define my datasource in
odbc.ini like so:

 

[my_pgeo]

Description = Sample PGeo Database

Driver      = Microsoft Access Driver (*.mdb)

Database    = /var/www/vhosts/mydomain.com/httpdocs/data/test.mdb

 

then the command ogrinfo  PGeo:my_pgeo results in the following:

 

INFO: Open of 'PGeo:my_pgeo' using driver 'PGeo' successful. 

Error: syntax error at line:2 col:0

 

I can't figure out what or where this syntax error can be. I feel that I am
quite close to success but don't know how to move forward from here. Can
anyone point me in the right direction please?

 

 

Chris 

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20111024/a761513d/attachment.html


More information about the gdal-dev mailing list