<br><font size=2 face="sans-serif">Hi,</font>
<br><font size=2 face="sans-serif">Every day I receive an Excel file containing
lat long coordinates. I need to import it to postgis.</font>
<br><font size=2 face="sans-serif">Currently, I save the Excel file in
CSV format and I use ogr2ogr to import the contents into postgis. I would
like to avoid human intervention.</font>
<br>
<br><font size=2 face="sans-serif">I tried unsuccessfully  to define
an ODBC link on the Excel file and use ogr2ogr with odbc to import it to
postgres/postgis.</font>
<br><font size=2 face="sans-serif">I got this error</font>
<br><font size=2 face="sans-serif">[Microsoft][ODBC Excel Driver] External
table is not in the expected format</font>
<br>
<br><font size=2 face="sans-serif">Here is the command I sent</font>
<br><font size=2 face="sans-serif">ogr2ogr -f "PostgreSQL" PG:"host=xxx
user=xxx password=xxx dbname=geo" "ODBC:odbc_urg,test" -nln
"testODBCxls" -overwrite</font>
<br>
<br><font size=2 face="sans-serif">where test is the sheet name inside
the excel file</font>
<br>
<br><font size=2 face="sans-serif">Anyone has a better idea on how to programmatically
import excel data into postgis?</font>
<br><font size=2 face="sans-serif">thanks</font>
<br><font size=2 face="sans-serif">Steve</font>