[Mapserver-users] Error Parsing POSTGIS connection informatio n

christian.schuster at rsag.ch christian.schuster at rsag.ch
Wed Jan 29 12:08:27 EST 2003


This is a multipart message in MIME format.
--=_alternative 005E28C8C1256CBD_=
Content-Type: text/plain; charset="US-ASCII"

I tried now both connection settings

### Connect to a remote spatial database 
CONNECTION "user=*** password=**** dbname=myGISdb host=localhost 
port=5432" 

### Connect to a remote spatial database 
CONNECTION "user=*** password=**** dbname=myGISdb host=127.0.01 port=5432"
 

With the same error message.

I am also not a Unix (Cygwin) expert. So, I am not absolutly sure if the 
PostgreSQL server is running right. Is there a possibility to check this?
Well, if I type in ps at the shell I get three processes for PostgreSQL.





"Swaminathan, Gayathri" <gayathri at ou.edu> 
29.01.2003 17:58

To
"'christian.schuster at rsag.ch'" <christian.schuster at rsag.ch>
cc

Subject
RE: [Mapserver-users] Error Parsing POSTGIS connection informatio       n







Try  doing this instead...Hope that works for you
 
LAYER 
  CONNECTIONTYPE postgis 
  NAME "points" 

  ### Connect to a remote spatial database 
   CONNECTION "user=*** password=**** dbname=myGISdb host=localhost 
port=5432" 



Gayathri Swaminathan 
Geo Information Systems 
University Of  Oklahoma 
(405) 325 3131 x 237 
(405) 904 4673 
visit us @ http://geo.ou.edu 
------------------------------------------------------ 
Work like you don't need money,love like 
you've never been hurt and, dance like 
no one's watching. 
~Anon 

 

-----Original Message-----
From: christian.schuster at rsag.ch  [mailto:christian.schuster at rsag.ch]
Sent: Wednesday, January 29, 2003  8:50 AM
To: mapserver-users at lists.gis.umn.edu
Subject:  [Mapserver-users] Error Parsing POSTGIS connection  information


Hi list, 

I am a  newbie an struggeling with getting GIS data from the database. I 
get the  following error in the browser 

msPOSTGISLayerOpen(): Query error. Error parsing POSTGIS connection 
information. 

This is my layer  definition: 

LAYER 
  CONNECTIONTYPE postgis 
   NAME "points" 

  ### Connect to a  remote spatial database 
  CONNECTION  "user=*** dbname=myGISdb host=127.0.0.1" 

  ### Get the points from the 'col1' column of the 't1'  table 
  DATA "col1 from t1" 
  STATUS ON 
   TYPE POINT 

  CLASS 
    COLOR 255 0 0        
  END 
END 
### end of layer  definitions 

Any help is welcome. 

Christian Schuster

Rudolf Schuster  AG
Postfach 277
CH - 3000 Bern 11

http://www.rsag.ch
++41 31  348 05 30

--=_alternative 005E28C8C1256CBD_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">I tried now both connection settings</font>
<br>
<br><font size=3><b>### Connect to a remote spatial database</b> </font>
<br><font size=3><b>CONNECTION &quot;user=*** password=**** dbname=myGISdb
host=localhost &nbsp;port=5432&quot;</b>&nbsp;</font>
<br>
<br><font size=3><b>### Connect to a remote spatial database</b> </font>
<br><font size=3><b>CONNECTION &quot;user=*** password=**** dbname=myGISdb
host=127.0.01 &nbsp;port=5432&quot;</b>&nbsp;</font>
<br>
<br><font size=2 face="sans-serif">With the same error message.</font>
<br>
<br><font size=2 face="sans-serif">I am also not a Unix (Cygwin) expert.
So, I am not absolutly sure if the PostgreSQL server is running right.
Is there a possibility to check this?</font>
<br><font size=2 face="sans-serif">Well, if I type in ps at the shell I
get three processes for PostgreSQL.</font>
<br>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>&quot;Swaminathan, Gayathri&quot;
&lt;gayathri at ou.edu&gt;</b> </font>
<p><font size=1 face="sans-serif">29.01.2003 17:58</font>
<td width=59%>
<table width=100%>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td valign=top><font size=1 face="sans-serif">&quot;'christian.schuster at rsag.ch'&quot;
&lt;christian.schuster at rsag.ch&gt;</font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td valign=top>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td valign=top><font size=1 face="sans-serif">RE: [Mapserver-users] Error
Parsing POSTGIS connection informatio &nbsp; &nbsp; &nbsp; &nbsp;n</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br>
<br><font size=2>Try &nbsp;doing this instead...Hope that works for you</font>
<br><font size=3>&nbsp;</font>
<br><font size=3><b>LAYER</b> &nbsp;</font>
<br><font size=3><b>&nbsp; CONNECTIONTYPE postgis</b> </font>
<br><font size=3><b>&nbsp; NAME &quot;points&quot;</b> &nbsp;</font>
<br>
<br><font size=3><b>&nbsp; ### Connect to a remote spatial database</b>
</font>
<br><font size=3><b>&nbsp; &nbsp;CONNECTION &quot;user=*** password=****
dbname=myGISdb host=localhost &nbsp;port=5432&quot;</b>&nbsp;</font>
<br>
<br>
<br>
<br><font size=3>Gayathri Swaminathan</font><font size=2> </font>
<br><font size=3>Geo Information Systems</font><font size=2> </font>
<br><font size=3>University Of &nbsp;Oklahoma</font><font size=2> </font>
<br><font size=3>(405) 325 3131 x 237</font><font size=2> </font>
<br><font size=3>(405) 904 4673</font><font size=2> </font>
<br><font size=3>visit us @ </font><a href=http://geo.ou.edu/><font size=3 color=blue><u>http://geo.ou.edu</u></font></a><font size=2>
</font>
<br><font size=3>------------------------------------------------------</font><font size=2>
&nbsp;</font>
<br><font size=3>Work like you don't need money,love like</font><font size=2>
</font>
<br><font size=3>you've never been hurt and, dance like</font><font size=2>
</font>
<br><font size=3>no one's watching.</font><font size=2> </font>
<br><font size=3>~Anon</font><font size=2> &nbsp;</font>
<br>
<br><font size=3>&nbsp;</font>
<br>
<br><font size=2>-----Original Message-----</font>
<br><font size=2><b>From:</b> christian.schuster at rsag.ch &nbsp;[mailto:christian.schuster at rsag.ch]</font>
<br><font size=2><b>Sent:</b> Wednesday, January 29, 2003 &nbsp;8:50 AM</font>
<br><font size=2><b>To:</b> mapserver-users at lists.gis.umn.edu</font>
<br><font size=2><b>Subject:</b> &nbsp;[Mapserver-users] Error Parsing
POSTGIS connection &nbsp;information</font>
<br>
<br>
<br><font size=3>Hi list, </font>
<br>
<br><font size=3>I am a &nbsp;newbie an struggeling with getting GIS data
from the database. I get the &nbsp;following error in the browser </font>
<br>
<br><font size=3><b>msPOSTGISLayerOpen(): Query error. Error parsing POSTGIS
connection &nbsp;information.</b> </font>
<br>
<br><font size=3>This is my layer &nbsp;definition: </font>
<br>
<br><font size=3><b>LAYER</b> </font>
<br><font size=3><b>&nbsp; CONNECTIONTYPE postgis</b> </font>
<br><font size=3><b>&nbsp; &nbsp;NAME &quot;points&quot;</b> </font>
<br>
<br><font size=3><b>&nbsp; ### Connect to a &nbsp;remote spatial database</b>
</font>
<br><font size=3><b>&nbsp; CONNECTION &nbsp;&quot;user=*** dbname=myGISdb
host=127.0.0.1&quot;</b> </font>
<br>
<br><font size=3><b>&nbsp; ### Get the points from the 'col1' column of
the 't1' &nbsp;table</b> </font>
<br><font size=3><b>&nbsp; DATA &quot;col1 from t1&quot;</b> &nbsp;</font>
<br><font size=3><b>&nbsp; STATUS ON</b> </font>
<br><font size=3><b>&nbsp; &nbsp;TYPE POINT</b> </font>
<br>
<br><font size=3><b>&nbsp; CLASS</b> &nbsp;</font>
<br><font size=3><b>&nbsp; &nbsp; COLOR 255 0 0 &nbsp; &nbsp; &nbsp;&nbsp;</b>
</font>
<br><font size=3><b>&nbsp; END</b> </font>
<br><font size=3><b>END</b> </font>
<br><font size=3><b>### end of layer &nbsp;definitions</b> </font>
<br>
<br><font size=3>Any help is welcome. &nbsp;</font>
<br>
<br><font size=2>Christian Schuster</font>
<br>
<br><font size=2>Rudolf Schuster &nbsp;AG</font>
<br><font size=2>Postfach 277</font>
<br><font size=2>CH - 3000 Bern 11</font>
<br>
<br><font size=2>http://www.rsag.ch</font>
<br><font size=2>++41 31 &nbsp;348 05 30</font>
<br>
--=_alternative 005E28C8C1256CBD_=--



More information about the mapserver-users mailing list