<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)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><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:11.0pt;
        font-family:"Calibri","sans-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.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
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;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
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-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:black;background:white'>Dear all,<o:p></o:p></span></p><p class=MsoNormal><span style='color:black;background:white'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:black;background:white'>I&#8217;m currently trying to have mapserver v6.0.1 grab data from my postgis database v 2.0.0&nbsp; .&nbsp; When I request the layer through mapserver using cgi commands I get the following error message:<o:p></o:p></span></p><p class=MsoNormal style='margin-left:1.5in'><span style='color:black;background:white'><br><i>msDrawMap(): Image handling error. Failed to draw layer named 'aep_polygon_polyline'. msPostGISLayerWhichShapes(): Query error. Error (ERROR: function geomfromtext(unknown, integer) does not exist LINE 1: ...gid&quot; from aep_polygon_polyline where geom_3754 &amp;&amp; GeomFromTe... ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts. ) executing query: select encode(ST_AsBinary(ST_Force_2D(&quot;geom_3754&quot;),'NDR'),'hex') as geom,&quot;gid&quot; from aep_polygon_polyline where geom_3754 &amp;&amp; GeomFromText('POLYGON((980934.251404232 125495.986,980934.251404232 1038792.604,2809561.55559577 1038792.604,2809561.55559577 125495.986,980934.251404232 125495.986))',3754)<o:p></o:p></i></span></p><p class=MsoNormal><span style='color:black;background:white'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:black;background:white'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:black;background:white'>my mapfile looks like this:<o:p></o:p></span></p><p class=MsoNormal><i><o:p>&nbsp;</o:p></i></p><p class=MsoNormal style='margin-left:1.5in'><i>LAYER<o:p></o:p></i></p><p class=MsoNormal style='margin-left:1.5in'><i>&nbsp;&nbsp; NAME &quot;aep_polygon_polyline&quot;<o:p></o:p></i></p><p class=MsoNormal style='margin-left:1.5in'><i>&nbsp;&nbsp; STATUS ON<o:p></o:p></i></p><p class=MsoNormal style='margin-left:1.5in'><i>&nbsp;&nbsp; TYPE line<o:p></o:p></i></p><p class=MsoNormal style='margin-left:1.5in'><i>&nbsp;&nbsp; CONNECTIONTYPE postgis<o:p></o:p></i></p><p class=MsoNormal style='margin-left:1.5in'><i>&nbsp;&nbsp; CONNECTION &quot;host=localhost dbname=aep_columbus user=****** password=******** port=5432&quot;<o:p></o:p></i></p><p class=MsoNormal style='margin-left:1.5in'><i>&nbsp;&nbsp; <o:p></o:p></i></p><p class=MsoNormal style='margin-left:1.5in'><i>&nbsp;&nbsp;&nbsp;<o:p></o:p></i></p><p class=MsoNormal style='margin-left:1.5in'><i>&nbsp;&nbsp;&nbsp;DATA &quot;geom_3754 from aep_polygon_polyline using unique gid using srid=3754&quot;<o:p></o:p></i></p><p class=MsoNormal style='margin-left:1.5in'><i>&nbsp;&nbsp; PROJECTION<o:p></o:p></i></p><p class=MsoNormal style='margin-left:1.5in'><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;init=epsg:3754&quot;<o:p></o:p></i></p><p class=MsoNormal style='margin-left:1.5in'><i>&nbsp;&nbsp; END<o:p></o:p></i></p><p class=MsoNormal style='margin-left:1.5in'><i>&nbsp;&nbsp; CLASSITEM 'gid'<o:p></o:p></i></p><p class=MsoNormal style='margin-left:1.5in'><i>&nbsp;&nbsp;&nbsp; CLASS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></i></p><p class=MsoNormal style='margin-left:1.5in'><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STYLE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></i></p><p class=MsoNormal style='margin-left:1.5in'><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 200 200 200<o:p></o:p></i></p><p class=MsoNormal style='margin-left:1.5in'><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 200 200 200<o:p></o:p></i></p><p class=MsoNormal style='margin-left:1.5in'><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE 2<o:p></o:p></i></p><p class=MsoNormal style='margin-left:1.5in'><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<o:p></o:p></i></p><p class=MsoNormal style='margin-left:1.5in'><i>&nbsp;&nbsp;&nbsp; END<o:p></o:p></i></p><p class=MsoNormal style='margin-left:1.5in'><i>END<o:p></o:p></i></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>I used the following command to create my shapefile:<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal style='margin-left:1.0in'><i>shp2pgsql -s 3754 -g geom_3754 /path/to/my/shpfile | psql -h localhost -U postgres -p 5432 -d aep_columbus<o:p></o:p></i></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>3754 is Ohio State Plane South.&nbsp; Does this mean that I need to use the &#8211;G geography option to make my data properly render?<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Thank you so much,<o:p></o:p></p><p class=MsoNormal>Paul<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><b><span style='font-size:12.0pt'>Paul A. Maddock<o:p></o:p></span></b></p><p class=MsoNormal><span style='font-size:12.0pt'>Mapping Technician<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt'>IJUS LLC<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt'>560 Officenter Place<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt'>Gahanna, OH 43230<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt'>Cell: (513) 404-6476<o:p></o:p></span></p><p class=MsoNormal><a href="http://www.ijus.net/index.html"><span style='color:blue;text-decoration:none'><img border=0 width=100 height=71 id="Picture_x0020_1" src="cid:image001.gif@01CD23C8.5F79EDB0" alt="Description: Description: Home"></span></a><span style='font-size:12.0pt'><o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>