<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<div>Try removing the single quotes from the host and dbname info (as in the example from the documentation below). If that does not work simply access the layer from a GIS software like qgis (its free) and lets know what the problem is.&nbsp;</div><div><br></div><div>All the best</div><div><br></div><div>Franz</div><div>GIS Specialist</div><div>Ghana</div><div><br></div><div>CONNECTIONTYPE POSTGIS</div><div>CONNECTION "host=yourhostname dbname=yourdatabasename user=yourdbusername password=yourdbpassword port=DATA "geometrycolumn from yourtablename"</div><br><hr id="stopSpelling">From: scientific1quash@gmail.com<br>Date: Sat, 15 May 2010 08:02:27 -0700<br>To: ms4w-users@lists.maptools.org<br>Subject: [MS4W-Users] mapserver not displaying postgis layers<br><br><br><br><div class="ecxgmail_quote"><br><br clear="all">mapserver not displaying postgis layers<br><br><br><br>hey guys,<br>i have trouble displaying postgis layers on mapserver nothing at all seems to work, any idea how i can change this, coz when i load directly from&nbsp; a shapefile, everything is ok, but not postgis, here is the code<br>


<br>&nbsp;LAYER<br>&nbsp;&nbsp;&nbsp; NAME 'kenya_administrative'<br>&nbsp;&nbsp;&nbsp; TYPE LINE<br>&nbsp;&nbsp;&nbsp; CONNECTIONTYPE postgis<br>&nbsp;&nbsp;&nbsp; CONNECTION "dbname='postgis-try' host=localhost port=5432 user='postgres' password='postgres'"<br>


&nbsp;&nbsp;&nbsp; DATA "the_geom FROM kenya_administrative"<br>&nbsp;&nbsp;&nbsp; METADATA<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'wms_title' 'kenya_administrative'<br>&nbsp;&nbsp;&nbsp; END<br>&nbsp;&nbsp;&nbsp; STATUS OFF #when status in ON, its completely blank when off there is a gray background<br>


&nbsp;&nbsp;&nbsp; TRANSPARENCY 100<br>&nbsp;&nbsp;&nbsp; PROJECTION<br>&nbsp;&nbsp;&nbsp; "init=epsg:31468"<br><br>&nbsp;&nbsp;&nbsp; END<br>&nbsp;&nbsp;&nbsp; CLASS<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME 'kenya_administrative' <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STYLE<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYMBOL 0 <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE 2 <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 150 123 90<br>


&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 0 0 0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<br>&nbsp;&nbsp;&nbsp; END<br>&nbsp; END<br><br>-- <br>With regards,<br><font color="#888888"> Linnet Kwamboka<br><br>
</font></div><br><br>                                               <br /><hr />Get a free e-mail account with Hotmail. Sign-up now. <a href='' target='_new'></a></body>
</html>