<div>Hi Zoltan,</div>
<div>&nbsp;</div>
<div>using external script code snippets to create worldfiles is sure an option for this case, but I do not know how to use awk script, I hear it for the first time.</div>
<div>&nbsp;</div>
<div>I realize that all my GIFs may be merged into one large TIF image using gdal_merge.py command, but unfortunately I can not use it under MS4W 4.8.1, because&nbsp;this command only can be&nbsp;performed under Python support.</div>

<div>&nbsp;</div>
<div>I am now trying to do it in this way, but I am not sure if it works.</div>
<div>&nbsp;</div>
<div>thanks for your ideas</div>
<div>&nbsp;</div>
<div>zhonghai<br>&nbsp;</div>
<div><span class="gmail_quote">On 5/23/06, <b class="gmail_sendername">Siki Zoltan</b> &lt;<a href="mailto:siki@agt.bme.hu">siki@agt.bme.hu</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi,<br><br>You must create world files from mapinfo tabs.<br>I could do it by an awk script, but my case was special.
<br>Nonearth coordinates and the four corners were given in the tab files and<br>no rotation.<br>^ y<br>|3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4<br>+----------+<br>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|<br>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|<br>+----------+ ------&gt; x<br>1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2<br><br>tab file contains raster coordinates like (0,0) for point 3 and the world
<br>coordinates.<br><br>you can get the first row in the world file:<br>(x2 - x1) / (col2 - col1)&nbsp;&nbsp;&nbsp;&nbsp;called dx<br>The second and third rows are zeros if no rotation<br>fourth row<br>(y3 - y1) / (row3 - row1)&nbsp;&nbsp;&nbsp;&nbsp;called dy (it is always negative)
<br>the last two rows are the x,y coordinates of the center of the top-left<br>pixel<br>x3 + dx / 2<br>y3 + dy / 2<br><br>I hope this helps you<br><br>Zoltan<br><br>On Tue, 23 May 2006, Zhonghai Wang wrote:<br><br>&gt; Hi guys,
<br><br>any further ideas for this topic?<br><br>l am really overwhelmed by it.<br><br>since I have a amount of small GIF+TAB files, if I really need to create<br>worldfiles for all the GIFs, it will be a huge project and seems not be
<br>possible.<br><br>thanks a lot for any idea I can try.<br><br>zhonghai<br><br>On 5/22/06, Zhonghai Wang &lt;<a href="mailto:zhonghaiw@gmail.com">zhonghaiw@gmail.com</a>&gt; wrote:<br>&gt;<br>&gt;&nbsp;&nbsp;Hi,<br>&gt;<br>&gt; I've checked using &quot;mapserv -v&quot; and the GIF is supported.
<br>&gt;<br>&gt; but it's strange that I can not performed &quot;gdalinfo --formats&quot; or<br>&gt; &quot;gdal-congif --formats&quot; to check if the GIF format is supported. I am using<br>&gt; the precomplied MS4W on WinXP. Does this mean that my gdal utility is not
<br>&gt; really working? but I still can use some commands such as &quot;gdalinfo&quot; and<br>&gt; &quot;gdal_translate&quot;.<br>&gt;<br>&gt; zhongahi<br>&gt;<br>&gt;&nbsp;&nbsp;On 5/22/06, Zhonghai Wang &lt;<a href="mailto:zhonghaiw@gmail.com">
zhonghaiw@gmail.com</a>&gt; wrote:<br>&gt; &gt;<br>&gt; &gt;&nbsp;&nbsp;Hi guys,<br>&gt; &gt;<br>&gt; &gt; I get some info again from the &quot;Raster Dat Access&quot; document, and it<br>&gt; &gt; indicates that:<br>&gt; &gt;<br>&gt; &gt; ****
<br>&gt; &gt; GIF: If GD is configured with GIF (OUTPUT=GIF) support, then MapServer<br>&gt; &gt; will also be able to read GIF files for raster layers. The only way to<br>&gt; &gt; georeference GIF files is with a world file.
<br>&gt; &gt;<br>&gt; &gt; If GD is not configured with GIF support, it may still be available in<br>&gt; &gt; GDAL<br>&gt; &gt;<br>&gt; &gt; ****<br>&gt; &gt;<br>&gt; &gt; Is it true that GIF raster images can only be georeferenced with a
<br>&gt; &gt; worldfiles? TAB files are not supported?<br>&gt; &gt;<br>&gt; &gt; zhonghai<br>&gt; &gt;&nbsp;&nbsp;On 5/22/06, Zhonghai Wang &lt;<a href="mailto:zhonghaiw@gmail.com">zhonghaiw@gmail.com</a> &gt; wrote:<br>&gt; &gt; &gt;
<br>&gt; &gt; &gt;&nbsp;&nbsp;Hi guys,<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; I've found a way to do that, like this:<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; c:\.....rasterdata&gt;dir /b /s tem\*.gif &gt; index.txt<br>&gt; &gt; &gt; c:\.....rasterdata&gt;gdaltindex 
index.shp --optfile index.txt<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; and this works well.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; but georeferencing information in the TAB file can not be found by the<br>&gt; &gt; &gt; command, an error message is something like:
<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;&gt;&gt;no georeferencing info is available, gdaltindex performance will be<br>&gt; &gt; &gt; skipped.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; actually there is georeferencing info in the TAB file, for each small
<br>&gt; &gt; &gt; gif image there is a corresponding TAB, e.g.:<br>&gt; &gt; &gt; ***<br>&gt; &gt; &gt; !table<br>&gt; &gt; &gt; !version 300<br>&gt; &gt; &gt; !charset WindowsLatin1<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Definition Table
<br>&gt; &gt; &gt;&nbsp;&nbsp; File &quot;m_1_1_1000.gif&quot;<br>&gt; &gt; &gt;&nbsp;&nbsp; Type &quot;RASTER&quot;<br>&gt; &gt; &gt;&nbsp;&nbsp; (5.290517,48.2308475) (1392,987) Label &quot;Pt 1&quot;,<br>&gt; &gt; &gt;&nbsp;&nbsp; (5.25001439194036,48.25) (0,0) Label &quot;Pt 2&quot;,
<br>&gt; &gt; &gt;&nbsp;&nbsp; (5.25001439194036 ,48.211695) (0,1974) Label &quot;Pt 3&quot;,<br>&gt; &gt; &gt;&nbsp;&nbsp; (5.33101960805964,48.25) (2784,0) Label &quot;Pt 4&quot;,<br>&gt; &gt; &gt;&nbsp;&nbsp; (5.33101960805964,48.211695) (2784,1974) Label &quot;Pt 5&quot;
<br>&gt; &gt; &gt;&nbsp;&nbsp; CoordSys Earth Projection 1, 104<br>&gt; &gt; &gt;&nbsp;&nbsp; Units &quot;degree&quot;<br>&gt; &gt; &gt; ***<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; why can it not be read by gdal?<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; thanks a lot
<br>&gt; &gt; &gt;&nbsp;&nbsp;zhonghai<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; On 5/22/06, Mateusz Loskot &lt;<a href="mailto:mateusz@loskot.net">mateusz@loskot.net</a> &gt; wrote:<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; Rahkonen Jukka wrote:
<br>&gt; &gt; &gt; &gt; &gt; Very first you can try giving the full path to your images, I mean<br>&gt; &gt; &gt; &gt; &gt; c:\...\rasterdata\tem\*.gif. Let's see what happens.<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; It should not be the case.
<br>&gt; &gt; &gt; &gt; I've checked gdaltindex from latest FWTools on Windows and<br>&gt; &gt; &gt; &gt; it works with relative and absolute paths.<br>&gt; &gt; &gt; &gt; Also, you can use forward or back slash:<br>&gt; &gt; &gt; &gt;
<br>&gt; &gt; &gt; &gt; gdaltindex test.shp data/*.tif<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; gdaltindex test.shp data\*.tif<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; Although, gdaltindex usage message suggests to use the former
<br>&gt; &gt; &gt; &gt; version<br>&gt; &gt; &gt; &gt; with Unix-like forward slash.<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; Cheers<br>&gt; &gt; &gt; &gt; --<br>&gt; &gt; &gt; &gt; Mateusz Łoskot<br>&gt; &gt; &gt; &gt; 
<a href="http://mateusz.loskot.net">http://mateusz.loskot.net</a><br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt;<br>&gt;<br><br></blockquote></div><br>