hi all,<br>    i am a new bie to fgs and i want to test one of my mapfile with connecting to my database.<br>    here is my mapfile<br><br><br>NAME &quot;test&quot;<br>SIZE 800 600<br>IMAGECOLOR 249 245 186<br>IMAGETYPE png<br>
EXTENT -1.00 -1.00 1.00 1.00<br>LAYER<br>    CONNECTIONTYPE postgis<br>    NAME &quot;test&quot;<br>    CONNECTION &quot;user=postgres password=hellopostgres dbname=postgres host=localhost&quot;<br>    DATA &quot;geom FROM test&quot;<br>
    STATUS ON<br>    TYPE POINT<br>   END<br>END<br><br><br><br>whenever i test the file as <u><b>shp2img</b></u><b> </b>i get the following error<br><br><br>msDrawMap(): Image handling error. Failed to draw layer named &#39;test&#39;. &lt;br&gt;<br>
prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: &#39;DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(geom)),&#39;NDR&#39;),OID::text from test WHERE geom &amp;&amp; setSRID(&#39;BOX3D(-1.3338898163606 -1,1.3338898163606 1)&#39;::BOX3D, find_srid(&#39;&#39;,&#39;test&#39;,&#39;geom&#39;) )&#39; <br>
<br>Postgresql reports the error as &#39;ERROR:  find_srid() - couldnt find the corresponding SRID - is the geometry registered in the GEOMETRY_COLUMNS table?  Is there an uppercase/lowercase missmatch?<br>&#39;<br><br>More Help:<br>
<br>Error with POSTGIS data variable. You specified &#39;check your .map file&#39;.<br>Standard ways of specifiying are : <br>(1) &#39;geometry_column from geometry_table&#39; <br>(2) &#39;geometry_column from (sub query) as foo using unique column name using SRID=srid#&#39; <br>
<br>Make sure you put in the &#39;using unique  column name&#39; and &#39;using SRID=#&#39; clauses in.<br><br>For more help, please see <a href="http://postgis.refractions.net/documentation/">http://postgis.refractions.net/documentation/</a> <br>
<br>Mappostgis.c - version of Jan 23/2004.<br> &lt;br&gt;<br><br><br><br><br>   any solutions will be appreciated<br><br><br>   regards<br>   SyedMohseen<br>