<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.heading1a, li.heading1a, div.heading1a
        {mso-style-name:heading1a;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        text-indent:-9.0pt;
        mso-list:l0 level1 lfo2;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.section1, li.section1, div.section1
        {mso-style-name:section1;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Arial","sans-serif";
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:1939874978;
        mso-list-template-ids:-1961085734;}
@list l0:level1
        {mso-level-number-format:roman-upper;
        mso-level-tab-stop:.5in;
        mso-level-number-position:right;
        text-indent:-9.0pt;
        mso-ansi-font-size:14.0pt;
        mso-bidi-font-size:14.0pt;
        font-family:"Times New Roman","serif";}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:63.0pt;
        mso-level-number-position:left;
        margin-left:63.0pt;
        text-indent:-.25in;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:1.5in;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level4
        {mso-level-tab-stop:2.0in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:2.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:3.0in;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level7
        {mso-level-tab-stop:3.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:4.0in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:4.5in;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level2 lfo2
        {mso-level-numbering:continue;
        mso-level-tab-stop:63.0pt;
        mso-level-number-position:left;
        margin-left:63.0pt;
        text-indent:-.25in;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hi Rubin<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>What does Firebug say? It usually gives good error messages for Postgres connection issues.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I believe that MapServer needs to have the geometry column entered in the geometry_columns table for the query to work.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Len<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Rubin Seifert [mailto:rseifert@ci.faribault.mn.us] <br><b>Sent:</b> Friday, June 25, 2010 2:22 PM<br><b>To:</b> geomoose-users@lists.sourceforge.net<br><b>Subject:</b> [Geomoose-users] GeoMOOSE and PostGIS Help<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>Hello Everyone,<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>I am having problems displaying postgis layers. The postgis layer shows up pink. If I use the shapefile, the layer displays correctly.<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>So, I have searched through the mail list archives, mapserver documentation, and postgis documentation with no luck. I am thinking I missed something simple. I am using MS4W version 2.3.1 and GeoMoose 2.2. I have been able to connect to the database and view the data using QGIS. So it has to be a mapserver problem right?<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>Here is the map file:<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>--<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>MAP ##<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'> NAME 'postgresql'<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'> STATUS ON<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'> UNITS METERS<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'> TRANSPARENT TRUE<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'> INCLUDE "../../geomoose_globals.map"<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'> <o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'> LAYER<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'> NAME "test"<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'> CONNECTIONTYPE postgis<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'> CONNECTION "host=localhost port=5432 dbname=geomoose user=gisadmin password=gis"<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'> DATA "the_geom from test"<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'> #DATA '../data/test.shp'<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'> <o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'> STATUS ON<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'> TYPE line<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'> CLASS<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'> NAME 'PostGIS Test'<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'> #STYLE<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'> # SYMBOL 'plainline'<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'> #SIZE 0.8<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'> COLOR 0 92 230<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'> #END<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'> END<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'> END # LAYER<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>END ## end Map<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>--<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>Any ideas are greatly appreciated, thanks.<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>Rubin<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p class=section1 style='margin:0in;margin-bottom:.0001pt'>Rubin Seifert<span style='background:navy'><br></span>GIS-CAD Tech.<br>City of Faribault<br>208 First Avenue N.W.<br>Faribault, MN 55021<br>Email: <a href="mailto:rseifert@ci.faribault.mn.us" title="blocked::mailto:rseifert@ci.faribault.mn.us"><span style='font-size:11.0pt;color:navy'>rseifert@ci.faribault.mn.us</span></a><span style='font-size:11.0pt;color:navy'><o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'><o:p> </o:p></span></p></div></body></html>