<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN 
class=188325320-25062004>All,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=188325320-25062004></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=188325320-25062004>How do I connect to 
a Postgre database using OGR?&nbsp; In other words, how do I put together my 
connection string to pass to <FONT size=2>OGRSFDriverRegistrar::Open()?&nbsp; I 
tried the following:</FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=188325320-25062004><FONT 
size=2></FONT></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=188325320-25062004><FONT 
size=2>OGRSFDriverRegistrar::Open("PG:pghost=172.17.38.85;pguser=pbarker;pgpass=pbarker;dbname=ew", 
0);</FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=188325320-25062004><FONT 
size=2></FONT></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=188325320-25062004><FONT size=2>but it 
returns a NULL dataset.&nbsp;&nbsp;Does anyone know what I'm doing wrong?&nbsp; 
Is Postgre support enabled in the GDAL build 
automatically?</FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=188325320-25062004><FONT 
size=2></FONT></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=188325320-25062004><FONT 
size=2>Thanks,&nbsp;</DIV></FONT></SPAN></FONT>
<DIV>&nbsp;</DIV>
<DIV align=left><FONT face=Arial size=2>
<DIV align=left><FONT face=Arial size=2>Martin Chapman</FONT></DIV>
<DIV align=left><FONT face=Arial><FONT size=2><SPAN 
class=812572720-02042003>Cell</SPAN>&nbsp;303-885-1936</FONT></FONT></DIV>
<DIV align=left><FONT face=Arial size=2><SPAN class=812572720-02042003>Office 
303-660-3933 x226</SPAN></FONT></DIV>
<DIV align=left><FONT face=Arial size=2><SPAN class=812572720-02042003><A 
href="mailto:mchapman@sanz.com">mchapman@sanz.com</A></SPAN></FONT></DIV>
<DIV align=left><FONT face=Arial size=2><SPAN class=812572720-02042003><A 
href="http://www.sanz.com/">http://www.sanz.com</A></SPAN></FONT></DIV></FONT></DIV>
<DIV align=left><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV></BODY></HTML>