Hi Dushi,<br><br>in the mapfile the layer has <b>NAME &quot;cmb_roads_rda&quot;,</b> but you call it from cgi like layer=states.<br>You should rename your layer to &quot;states&quot; or change the layers parameter in url<br>

<br>regards,<br>michael<br><br><div class="gmail_quote">On Sun, Jul 10, 2011 at 7:57 AM, Dushi <span dir="ltr">&lt;<a href="mailto:dushan888@gmail.com">dushan888@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi, I&#39;m a newbee for GIS. I have a posgis database on my working environment(template_postgis). i need to retrieve &quot;the_geom&quot; column from  a table named &quot;cmb_roads_rda&quot;. following is my map file (test.map). <br>



<b>MAP<br>  IMAGETYPE      PNG<br>  EXTENT         -97.238976 41.619778 -82.122902 49.385620<br>  SIZE           900 900 <br>  IMAGECOLOR     255 255 143<br><br><br>  LAYER <br>    NAME         cmb_roads_rda<br>    CONNECTIONTYPE postgis <br>



    NAME &quot;cmb_roads_rda&quot;<br>    CONNECTION &quot;user=postgres password=817888 port=5432 dbname=template_postgis host=localhost&quot;<br>    DATA         &quot;the_geom from cmb_roads_rda&quot; <br>    STATUS       ON<br>



    DEBUG         ON<br>    TYPE         LINE<br>    <br>    CLASS<br>      NAME       &quot;cmb_roads_rda&quot;<br><br>      STYLE<br>        COLOR        232 232 266<br>        OUTLINECOLOR 32 32 33<br>  <br>      END<br>



    END<br>END <br>  <br><br>END   <br><br></b>I call this map file by calling the following link --&gt; <a href="http://localhost/cgi-bin/mapserv?map=/var/www/db/test.map&amp;layer=states&amp;mode=map" target="_blank">http://localhost/cgi-bin/mapserv?map=/var/www/db/test.map&amp;layer=states&amp;mode=map</a><br>



but it <b>only generates a yellow color layer on </b>the browser and not displaying &quot;the_geom&quot; data.<br>I&#39;m using mapserver 5.6.6 with apashe2 webserver on linux mint.<br>Please be kind to help on this issue. Thank you so much.  <br>

<font color="#888888">

 <br clear="all"><b><br></b>-- <br>Me on Web<br><a href="http://dushan888.wordpress.com" target="_blank">http://dushan888.wordpress.com</a><br><a href="http://www.twitter.com/Dushi" target="_blank">http://www.twitter.com/Dushi</a><br>



<a href="http://identi.ca/dushi" target="_blank">http://identi.ca/dushi</a><br>
</font><br>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br></blockquote></div><br>