Hi Kresh,<br><br>The parameters in a .tfw file are explained here: <a href="http://www.kralidis.ca/gis/worldfile.htm">http://www.kralidis.ca/gis/worldfile.htm</a><br><br>One caveat to be aware of is that the pixel coordinates are for the center of the pixel, not the UL corner.&nbsp; So if you have an image with the UL corner at (x,y), you need to use the following in your worldfile<br>
<br>Pixel_X_size<br>0<br>0<br>Pixel_Y_size (usually a negative number when using North-up data)<br>UL_x + (Pixel_X_size / 2)<br>UL_y + (Pixel_Y_size /2)<br><br>Roger<br>--<br><br><div class="gmail_quote">On Sun, Nov 2, 2008 at 11:19 PM, <a href="mailto:kreshna_iceheart@yahoo.com">kreshna_iceheart@yahoo.com</a> <span dir="ltr">&lt;<a href="mailto:kreshna_iceheart@yahoo.com">kreshna_iceheart@yahoo.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I have a map file with following MapExtent parameter:<br>
 &nbsp;EXTENT 106.335006 -6.896956 107.315811 -5.983994<br>
<br>
Recently, I got a TIFF file without coordinates. I plan to use the TIFF file with my map. Thus, I&#39;m supposed to create a .TFW file using text editor, am I correct?<br>
<br>
Problem is: I&#39;m not sure what parameter to be put in the .TFW file. Here is the parameters I put in my TFW file so far:<br>
 &nbsp; &nbsp; &nbsp;1.000<br>
 &nbsp; &nbsp; &nbsp;0.000<br>
 &nbsp; &nbsp; &nbsp;0.000<br>
 &nbsp; &nbsp; -1.000<br>
 &nbsp; &nbsp;106.335006<br>
 &nbsp; &nbsp; -5.983994<br>
<br>
And I failed to show the raster on my map.<br>
<br>
Please note that I am merely guessing. It seems that the fifth and the sixth like of the TFW should be the leftmost and rightmost number of my EXTENT parameter, respectively, but I have no idea what the first four lines are for.<br>

<br>
Based on EXTENT parameter above, what the correct .TFW values should be? Many thanks,<br>
<br>
-Kresh<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</blockquote></div><br>