<font size="6">TRY to write with a smaller text Please!</font><br><br>And try to comment (add "#" character) at the start of the "IMAGECOLOR 255 255 255" line<br><br><br><div class="gmail_quote">2009/9/2 Rangga Negara <span dir="ltr"><<a href="mailto:rkn2003@yahoo.co.id">rkn2003@yahoo.co.id</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><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 face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">Dari:</span></b> Jeff McKenna <<a href="mailto:jmckenna@gatewaygeomatics.com" target="_blank">jmckenna@gatewaygeomatics.com</a>><br><b><span style="font-weight: bold;">Kepada:</span></b> <a href="mailto:ms4w-users@lists.maptools.org" target="_blank">ms4w-users@lists.maptools.org</a><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>
> hi, i just not understand why the map cannot render<br>>
this is my mapfile<br>> <br>> name "b"<br>> SIZE 600 500<br>> UNITS DD<br>> IMAGETYPE JPEG<br>> IMAGECOLOR 255 255 255<br>> SHAPEPATH "C:/ms4w/home/mapdata/"<br>> EXTENT -77.119900 38.791513 -76.909396 38.995109<br>
> STATUS ON<br>> <br>> #<br>> # Start of web interface definition<br>> #<br>> <br>> WEB<br>> TEMPLATE '/ms4w/apache/htdocs/b.html'<br>> IMAGEPATH '/ms4w/tmp/ms_tmp/'<br>
> IMAGEURL '/ms_tmp/'<br>> END # WEB Section<br>> <br>> #<br>> # Start of Layer definition<br>> #<br>> LAYER<br>> NAME county<br>> TYPE polygon<br>> STATUS ON<br>
> CONNECTIONTYPE OGR<br>> CONNECTION "c:/ms4w/home/mapdata/county.TAB"<br>>
CLASS<br>> NAME "county"<br>> STYLE<br>> COLOR 254 222 212<br>> OUTLINECOLOR 0 0 0<br>> END<br>> END # Class section<br>
> END # LAYER Section<br>> <br>> END # MapFile<br>> <br>> <br>> ------and this is my html--------------------------------------------<br>> <html><br>> <head> <title>MapServer First Map</title></head><br>
> <body><br>> <form method=POST action="/cgi-bin/mapserv.exe?"><br>> <input type="submit" value="Click Me"><br>> <input type="hidden" name="map" <br>
>
value="C:/ms4w/home/mapdata/b.map&layers=all&mode=map"><br>> <input type="hidden" name="map_web"<br>> value="imagepath /ms4w/tmp/ms_tmp/"><br>
> </form><br>> <IMG SRC="[img]" width=600 height=500 border=0><br>> </body><br>> </html><br>> -------------------------------------------------------------------------<br>
> <br>> 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 href="mailto:MS4W-Users@lists.maptools.org" target="_blank">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><div class="hm"><br>
<hr size="1"> <a href="http://sg.rd.yahoo.com/sg/messenger/maxwell/*http://id.messenger.yahoo.com/" target="_blank"> Coba Yahoo! Messenger 9.0 baru </a> Akhirnya datang juga!</div></div><br>_______________________________________________<br>
MS4W-Users mailing list<br>
<a 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>
<br></blockquote></div><br><br clear="all"><br>-- <br>Martinez Morata David<br>Thinking GIS<br>