<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Tahoma","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
/* List Definitions */
@list l0
        {mso-list-id:409890535;
        mso-list-type:hybrid;
        mso-list-template-ids:899341438 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Tahoma","sans-serif";
color:#1F497D'>Hi,<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Tahoma","sans-serif";
color:#1F497D'>A couple of thoughts:-<o:p></o:p></span></p>
<p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span
style='font-size:9.0pt;font-family:"Tahoma","sans-serif";color:#1F497D'><span
style='mso-list:Ignore'>1.<span style='font:7.0pt "Times New Roman"'>
</span></span></span><![endif]><span style='font-size:9.0pt;font-family:"Tahoma","sans-serif";
color:#1F497D'>Try changing the layer status from ON to DEFAULT (STATUS DEFAULT).
Does it make a diffrerence?<o:p></o:p></span></p>
<p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span
style='font-size:9.0pt;font-family:"Tahoma","sans-serif";color:#1F497D'><span
style='mso-list:Ignore'>2.<span style='font:7.0pt "Times New Roman"'>
</span></span></span><![endif]><span style='font-size:9.0pt;font-family:"Tahoma","sans-serif";
color:#1F497D'>What happens if you run the following directly from your
browser: <a
href="http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/home/mapdata/b.map&layers=all&mode=map">http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/home/mapdata/b.map&layers=all&mode=map</a><o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:18.0pt'><span style='font-size:9.0pt;
font-family:"Tahoma","sans-serif";color:#1F497D'>Or <a
href="http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/home/mapdata/b.map&layers=county&mode=map">http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/home/mapdata/b.map&layers=county&mode=map</a><o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:18.0pt'><span style='font-size:9.0pt;
font-family:"Tahoma","sans-serif";color:#1F497D'>Or <a
href="http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/home/mapdata/b.map&mode=map">http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/home/mapdata/b.map&mode=map</a>
(this will only apply if you set the layer status to DEFAULT)<o:p></o:p></span></p>
<p class=MsoListParagraph><span style='font-size:9.0pt;font-family:"Tahoma","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoListParagraph><span style='font-size:9.0pt;font-family:"Tahoma","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoListParagraph style='margin-left:0cm'><span style='font-size:9.0pt;
font-family:"Tahoma","sans-serif";color:#1F497D'>Pano<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Tahoma","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>
<p class=MsoNormal style='margin-left:36.0pt'><b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> ms4w-users-bounces@lists.maptools.org
[mailto:ms4w-users-bounces@lists.maptools.org] <b>On Behalf Of </b>Rangga
Negara<br>
<b>Sent:</b> 02 September 2009 19:42<br>
<b>To:</b> David Martinez Morata<br>
<b>Cc:</b> ms4w-users@lists.maptools.org<br>
<b>Subject:</b> [MS4W-Users] Bls: Bls: Trs: cannot render image<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal style='margin-left:36.0pt'><o:p> </o:p></p>
<div>
<div>
<p class=MsoNormal style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:
24.0pt;margin-left:36.0pt'><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>oh
sorry about text, but still nothing change<br>
<br>
<br>
<br>
<br>
</span><span style='font-size:24.0pt'><o:p></o:p></span></p>
<div>
<div class=MsoNormal align=center style='margin-left:36.0pt;text-align:center'><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
<hr size=1 width="100%" align=center>
</span></div>
<p class=MsoNormal style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:
12.0pt;margin-left:36.0pt'><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Dari:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> David Martinez
Morata <damarmo@gmail.com>vdsvfefe<br>
<b>Kepada:</b> Rangga Negara <rkn2003@yahoo.co.id><br>
<b>Cc:</b> Jeff McKenna <jmckenna@gatewaygeomatics.com>;
ms4w-users@lists.maptools.org<br>
<b>Terkirim:</b> Rabu, 2 September, 2009 21:34:55<br>
<b>Judul:</b> Re: [MS4W-Users] Bls: Trs: cannot render image<br>
</span><br>
<span style='font-size:24.0pt'>TRY to write with a smaller text Please!</span><br>
<br>
And try to comment (add "#" character) at the start of the
"IMAGECOLOR 255 255 255" line<br>
<br>
<o:p></o:p></p>
<div>
<p class=MsoNormal style='margin-left:36.0pt'>2009/9/2 Rangga Negara <<a
href="mailto:rkn2003@yahoo.co.id" target="_blank">rkn2003@yahoo.co.id</a>><o:p></o:p></p>
<div>
<div>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:24.0pt'>i
already with shp2img and i got the picture, <br>
but still in browser just white colour it the image box <o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:24.0pt'><o:p> </o:p></span></p>
<div>
<div class=MsoNormal align=center style='margin-left:36.0pt;text-align:center'><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
<hr size=1 width="100%" align=center>
</span></div>
<p class=MsoNormal style='margin-left:36.0pt'><b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'>Dari:</span></b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> Jeff McKenna <<a
href="mailto:jmckenna@gatewaygeomatics.com" target="_blank">jmckenna@gatewaygeomatics.com</a>><br>
<b>Kepada:</b> <a href="mailto:ms4w-users@lists.maptools.org" target="_blank">ms4w-users@lists.maptools.org</a><br>
<b>Terkirim:</b> Rabu, 2 September, 2009 20:29:27<br>
<b>Judul:</b> Re: [MS4W-Users] Trs: cannot render image<br>
</span><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><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><o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><o:p> </o:p></p>
<div class=MsoNormal align=center style='margin-left:36.0pt;text-align:center'>
<hr size=1 width="100%" align=center>
</div>
<p class=MsoNormal style='margin-left:36.0pt'><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!<o:p></o:p></p>
</div>
</div>
<p class=MsoNormal style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:
12.0pt;margin-left:36.0pt'><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><o:p></o:p></p>
</div>
<p class=MsoNormal style='margin-left:36.0pt'><br>
<br clear=all>
<br>
-- <br>
Martinez Morata David<br>
Thinking GIS<o:p></o:p></p>
</div>
</div>
</div>
<p class=MsoNormal style='margin-left:36.0pt'><o:p> </o:p></p>
<div class=MsoNormal align=center style='margin-left:36.0pt;text-align:center'>
<hr size=1 width="100%" align=center>
</div>
<p class=MsoNormal style='margin-left:36.0pt'><a
href="http://sg.rd.yahoo.com/id/messenger/trueswitch/mailtagline/*http:/id.messenger.yahoo.com/invite/">Selalu
bersama teman-teman di Yahoo! Messenger</a><br>
Tambahkan mereka dari email atau jaringan sosial Anda sekarang!<o:p></o:p></p>
</div>
</body>
</html>