<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">I'm not sure if is just the email doing it or if your CONNECTION string is entirely on one line or not. You might try having a single line if it is wrapped.<br><br>You can enable DEBUG in the mapfile & see any error messages.<br>http://mapserver.org/optimization/debugging.html<br><pre><font size="3"><span class="k">eg:<br>MAP</span><br>  <span class="p">...</span><br>  <span class="k">CONFIG</span> <span class="s">"MS_ERRORFILE"</span> <span class="s">"/tmp/ms_error.txt"</span><br>  <span class="k">DEBUG</span> <span class="mi">5</span><br>  <span class="p">...</span><br>  <span class="k">LAYER</span><br>    <span class="p">...</span><br>  <span class="k">END</span><br><span class="k">END</span><br><br></font></pre>This might have a bit of a learning curve, but is very useful to allow you to view & interact in an onscreen map context with both the
 source data and the mapserver output.<br><br>Install QGIS (or uDIG/JUMP/gvSIG/etc) and open the Postgis table directly in that to make sure you see what you expect to.<br><br>Then modify the mapfile to create a WMS service from the layer (pretty straightforward, as long as you have Apache installed) and then open this at the same time in QGIS, so you can see the native Postgis data & the mapserver WMS version are identical (aligned when they overlay each other) <br> <br>http://mapserver.org/ogc/wms_server.html<br><br>HTH<br><br>  Brent Wood<br><br>--- On <b>Wed, 4/27/11, Graham Walker <i><gwalker84@gmail.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Graham Walker <gwalker84@gmail.com><br>Subject: [postgis-users] Postgis -> Mapserver white background<br>To: postgis-users@postgis.refractions.net<br>Date: Wednesday, April 27, 2011, 7:26
 PM<br><br><div class="plainMail">Hi all, fairly new to all this. I was wondering if you could help me<br>with the following issue. I can't seem to display my postgis table in<br>mapserver. I can display shapefiles and html templates fine, but when<br>I try to connect to my postgis table I simply get a white background<br>(or whatever colour I set it as).<br><br>I have managed to display postgis tables before in mapserver, but I am<br>having no luck in this one and cannot see any differences. Both the<br>shapefile and postgis table can display in qgis. My map file is listed<br>below. I have intentionally tried to simplify this down to the basics<br>so it has no projection details, etc at present. Any help would be<br>greatly appreciated.  Thanks<br><br>MAP<br> NAME "test"<br>IMAGETYPE      PNG<br>    SIZE 400 500<br>    STATUS ON<br>    EXTENT 200949 883531 347001 979508<br>    SHAPEPATH
 "C:\ms4w\Apache\htdocs\test"<br>    UNITS METERS<br>END<br><br>    WEB<br>          IMAGEPATH "c:\ms4w\tmp\ms_tmp\"<br>       IMAGEURL "/ms_tmp/"<br>    END<br><br>#Region Polygons<br>    LAYER<br>        NAME "North"<br>        CONNECTIONTYPE postgis<br>    CONNECTION "user=postgres password=1<br>    dbname=test host=localhost port=5432"<br>        DATA "the_geom from North"<br>        TYPE POLYGON<br>        STATUS DEFAULT<br>        CLASS<br>            STYLE<br>                COLOR 1 1 1<br>                OUTLINECOLOR 1 1 1<br>            END<br>     
   END<br>    END<br>_______________________________________________<br>postgis-users mailing list<br><a ymailto="mailto:postgis-users@postgis.refractions.net" href="/mc/compose?to=postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br><a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br></div></blockquote></td></tr></table>