Hello All,<br><br>I am trying to display a simple shape file from postgis database but error log keep giving me this. <br><br>[Sat May 12 15:47:53 2012].968000 CGI Request 1 on process 4748<br>[Sat May 12 15:47:53 2012].968000 msDrawMap(): WMS/WFS set-up and query, 0.000s<br>
[Sat May 12 15:47:53 2012].995000 msPostGISLayerWhichShapes(): Query error. Error (ERROR:  function force_2d(geometry) does not exist<br>LINE 1: select encode(AsBinary(force_collection(force_2d(&quot;geom&quot;)),&#39;N...<br>
                                                ^<br>HINT:  No function matches the given name and argument types. You might need to add explicit type casts.<br>) executing query: select encode(AsBinary(force_collection(force_2d(&quot;geom&quot;)),&#39;NDR&#39;),&#39;hex&#39;) as geom,&quot;gid&quot; from waterways where geom &amp;&amp; GeomFromText(&#39;POLYGON((64.7695553856427 8.082365,64.7695553856427 34.585531,100.121858614357 34.585531,100.121858614357 8.082365,64.7695553856427 8.082365))&#39;,4326)<br>
[Sat May 12 15:47:53 2012].996000 msDrawMap(): Image handling error. Failed to draw layer named &#39;waterways&#39;.<br>[Sat May 12 15:47:53 2012].996000 msFreeMap(): freeing map at 01E5C1F8.<br><br>my postgres version is 9.0, gdal 1.8, i am using MS4W on windows 7<br>
<br>This shape file was working perfectly on PostGIS 1.5 but now its not working on version 2.<br clear="all">please help !!<br>-- <br>Thanks &amp; Regards,<br>Abhishek Bansal<br><a href="http://abhishekbansal.miyuri.com" target="_blank">http://abhishekbansal.miyuri.com</a><br>
Jaypee Institute of Information Technology, Noida<br><br><br>