<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:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
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.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-US;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></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-CA link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>I’m trying to upgrade to Mapserver 6, but I’m having some difficulty with my PostGIS layers.  I’ve made all of the style / symbology changes required by Version 6, as well as adding the “wms_enable_request” “*” line to the WEB section.  My raster and shapefile layers work fine.  Any mapfile that has a postgis layer won’t work at all.  On a GetCapabilities request, the cgi executable just churns away at 100% CPU usage, but never produces a result.  A GetMap request produces the same result.  I running on windows 7, and I’ve tried the binaries from both MS4W as well as the ones available from Tamas.  I also tried to roll my own, but all returned the same results.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>It doesn’t appear to be a problem with the mapfile or the postgis access, because shp2img produces images just fine.  It’s only WMS requests that don’t work.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>An example mapfile is below.  It works fine with shp2img, but hangs on any WMS request.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks in advance,<o:p></o:p></p><p class=MsoNormal>Rob McCulley<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='mso-fareast-language:EN-CA'>Mapfile:<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-CA'><o:p> </o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-CA'><o:p> </o:p></span></p><p class=MsoNormal>MAP<o:p></o:p></p><p class=MsoNormal>    NAME "WMS-test"<o:p></o:p></p><p class=MsoNormal>    STATUS ON<o:p></o:p></p><p class=MsoNormal>    SIZE 800 800<o:p></o:p></p><p class=MsoNormal>    SYMBOLSET symbol.sym<o:p></o:p></p><p class=MsoNormal>    EXTENT 497444 5856659 566947 5971683<o:p></o:p></p><p class=MsoNormal>    UNITS METERS<o:p></o:p></p><p class=MsoNormal>    WEB<o:p></o:p></p><p class=MsoNormal>        IMAGEPATH "/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/tmp/"<o:p></o:p></p><p class=MsoNormal>        IMAGEURL "/tmp/"<o:p></o:p></p><p class=MsoNormal>        METADATA<o:p></o:p></p><p class=MsoNormal>            "ows_enable_request" "*"<o:p></o:p></p><p class=MsoNormal>            "wms_title" "WMS Demo Server"<o:p></o:p></p><p class=MsoNormal>            "wms_onlintresource" "http://localhost/cgi-bin/mapserv.exe?map=wmstest.map&"<o:p></o:p></p><p class=MsoNormal>            "wms_srs" "EPSG:26912"<o:p></o:p></p><p class=MsoNormal>        END<o:p></o:p></p><p class=MsoNormal>    END<o:p></o:p></p><p class=MsoNormal>    CONFIG "PROJ_LIB" "C:/proj/nad/"<o:p></o:p></p><p class=MsoNormal>    PROJECTION<o:p></o:p></p><p class=MsoNormal>        "init=epsg:26912"<o:p></o:p></p><p class=MsoNormal>    END<o:p></o:p></p><p class=MsoNormal>    <o:p></o:p></p><p class=MsoNormal>    LAYER<o:p></o:p></p><p class=MsoNormal>        NAME "parcels"<o:p></o:p></p><p class=MsoNormal>        METADATA<o:p></o:p></p><p class=MsoNormal>            "wms_title" "Parcels"<o:p></o:p></p><p class=MsoNormal>        END<o:p></o:p></p><p class=MsoNormal>        TYPE POLYGON<o:p></o:p></p><p class=MsoNormal>        STATUS OFF<o:p></o:p></p><p class=MsoNormal>        CONNECTION "host=gpsserver dbname=CVR user=***** password=*****"<o:p></o:p></p><p class=MsoNormal>        CONNECTIONTYPE postgis<o:p></o:p></p><p class=MsoNormal>        DATA "shape FROM (SELECT id AS oid, geom AS shape FROM titles WHERE county = 1) AS foo USING UNIQUE oid USING SRID=26912"<o:p></o:p></p><p class=MsoNormal>        PROJECTION<o:p></o:p></p><p class=MsoNormal>            "init=epsg:26912"<o:p></o:p></p><p class=MsoNormal>        END<o:p></o:p></p><p class=MsoNormal>        CLASS<o:p></o:p></p><p class=MsoNormal>            NAME "Parcels"<o:p></o:p></p><p class=MsoNormal>            STYLE<o:p></o:p></p><p class=MsoNormal>                OUTLINECOLOR 0 0 0<o:p></o:p></p><p class=MsoNormal>            END<o:p></o:p></p><p class=MsoNormal>        END<o:p></o:p></p><p class=MsoNormal>    END<o:p></o:p></p><p class=MsoNormal>END<o:p></o:p></p></div></body></html>