<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:24pt"><div>i already with shp2img and i got the picture, <br>but still in browser just white colour it the image box <br></div><div style="font-family: times new roman,new york,times,serif; font-size: 24pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">Dari:</span></b> Jeff McKenna &lt;jmckenna@gatewaygeomatics.com&gt;<br><b><span style="font-weight: bold;">Kepada:</span></b> ms4w-users@lists.maptools.org<br><b><span style="font-weight: bold;">Terkirim:</span></b> Rabu, 2 September, 2009 20:29:27<br><b><span style="font-weight: bold;">Judul:</span></b> Re: [MS4W-Users] Trs: cannot render image<br></font><br>Rangga Negara wrote:<br>&gt; hi, i just not understand why the map cannot render<br>&gt;
 this is my mapfile<br>&gt; <br>&gt; name "b"<br>&gt; SIZE 600 500<br>&gt; UNITS DD<br>&gt; IMAGETYPE JPEG<br>&gt; IMAGECOLOR&nbsp; 255 255 255<br>&gt; SHAPEPATH "C:/ms4w/home/mapdata/"<br>&gt; EXTENT -77.119900 38.791513&nbsp; -76.909396 38.995109<br>&gt; STATUS ON<br>&gt; <br>&gt; #<br>&gt; #&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Start of web interface definition<br>&gt; #<br>&gt; <br>&gt; WEB<br>&gt;&nbsp; &nbsp;  TEMPLATE '/ms4w/apache/htdocs/b.html'<br>&gt;&nbsp; &nbsp;  IMAGEPATH '/ms4w/tmp/ms_tmp/'<br>&gt;&nbsp; &nbsp;  IMAGEURL '/ms_tmp/'<br>&gt; END # WEB Section<br>&gt; <br>&gt; #<br>&gt; #&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Start of Layer definition<br>&gt; #<br>&gt; LAYER<br>&gt;&nbsp; &nbsp;  NAME&nbsp; county<br>&gt;&nbsp; &nbsp;  TYPE polygon<br>&gt;&nbsp; &nbsp;  STATUS ON<br>&gt;&nbsp; &nbsp;  CONNECTIONTYPE OGR<br>&gt;&nbsp; &nbsp;  CONNECTION "c:/ms4w/home/mapdata/county.TAB"<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
 CLASS<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  NAME "county"<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  STYLE<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  COLOR 254 222 212<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  OUTLINECOLOR 0 0 0<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  END<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;  END # Class section<br>&gt; END # LAYER Section<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; <br>&gt; END # MapFile<br>&gt; <br>&gt; <br>&gt; ------and this is my html--------------------------------------------<br>&gt; &lt;html&gt;<br>&gt; &lt;head&gt; &lt;title&gt;MapServer First Map&lt;/title&gt;&lt;/head&gt;<br>&gt; &lt;body&gt;<br>&gt;&nbsp; &nbsp; &lt;form method=POST action="/cgi-bin/mapserv.exe?"&gt;<br>&gt;&nbsp; &nbsp; &nbsp;  &lt;input type="submit" value="Click Me"&gt;<br>&gt;&nbsp; &nbsp; &nbsp;  &lt;input type="hidden" name="map" <br>&gt;
 value="C:/ms4w/home/mapdata/b.map&amp;layers=all&amp;mode=map"&gt;<br>&gt;&nbsp; &nbsp; &nbsp;  &lt;input type="hidden" name="map_web"<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; value="imagepath /ms4w/tmp/ms_tmp/"&gt;<br>&gt;&nbsp; &nbsp; &lt;/form&gt;<br>&gt;&nbsp; &nbsp; &lt;IMG SRC="[img]" width=600 height=500 border=0&gt;<br>&gt; &lt;/body&gt;<br>&gt; &lt;/html&gt;<br>&gt; -------------------------------------------------------------------------<br>&gt; <br>&gt; output just white colour on the image box?<br><br>Hello,<br><br>Here are my thoughts:<br><br>- use the ogrinfo commandline utility to get the extents of the TAB file <br>(also included in MS4W)<br>- use the extents from ogrinfo in the EXTENT parameter of your mapfile<br>- test your mapfile using the shp2img commandline utility <br>(<a href="http://www.mapserver.org/utilities/shp2img.html" target="_blank">http://www.mapserver.org/utilities/shp2img.html</a>), which is included in
 MS4W<br><br>-jeff<br><br><br>-- <br>Jeff McKenna<br>FOSS4G Consulting and Training Services<br><a href="http://www.gatewaygeomatics.com/" target="_blank">http://www.gatewaygeomatics.com/</a><br><br><br><br><br><br><br>_______________________________________________<br>MS4W-Users mailing list<br><a ymailto="mailto:MS4W-Users@lists.maptools.org" href="mailto:MS4W-Users@lists.maptools.org">MS4W-Users@lists.maptools.org</a><br><a href="http://lists.maptools.org/mailman/listinfo/ms4w-users" target="_blank">http://lists.maptools.org/mailman/listinfo/ms4w-users</a><br></div></div></div><br>
      <hr size=1> <a href="http://sg.rd.yahoo.com/sg/messenger/maxwell/*http://id.messenger.yahoo.com/"> Coba Yahoo! Messenger 9.0 baru </a> Akhirnya datang juga!</body></html>