<html><body bgcolor="#FFFFFF"><div>I'm guessing this is a layer status issue. The cgi and shp2img behave differently in that regard. The cgi sets any non-default layer to off so you must request the layers to be on explicitly using the "layer" variable, e.g. ...&amp;layer=foo1&amp;layer=foo2&amp;...</div><div><br></div><div>Steve<br><br>Sent from my iPad</div><div><br>On Jul 5, 2011, at 1:24 AM, Dushi &lt;<a href="mailto:dushan888@gmail.com">dushan888@gmail.com</a>&gt; wrote:<br><br></div><div></div><blockquote type="cite"><div>Hi guys,<br>Im using mapserver with apache on Ubuntu. I'm trying to generate a PNG image using shape files by calling a map file. When i call the mapserver through apache2 web server it only generates an empty PNG with white space. but when i call it through "shp2img" utility it works fine. please be kind to help me. i'm a new to mapserver.<br>

Thank you so much <br>-- <br>Me on Web<br><a href="http://dushan888.wordpress.com" target="_blank"><a href="http://dushan888.wordpress.com">http://dushan888.wordpress.com</a></a><br><a href="http://www.twitter.com/Dushi" target="_blank"><a href="http://www.twitter.com/Dushi">http://www.twitter.com/Dushi</a></a><br>

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