<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 <jmckenna@gatewaygeomatics.com><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>> 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 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>