gdaltindex raster files (MapInfo gif + tab format)

Zhonghai Wang zhonghaiw at GMAIL.COM
Mon May 22 10:22:39 EDT 2006


Hi guys,

I've found a way to do that, like this:

c:\.....rasterdata>dir /b /s tem\*.gif > index.txt
c:\.....rasterdata>gdaltindex index.shp --optfile index.txt

and this works well.

but georeferencing information in the TAB file can not be found by the
command, an error message is something like:

>>>no georeferencing info is available, gdaltindex performance will be
skipped.

actually there is georeferencing info in the TAB file, for each small gif
image there is a corresponding TAB, e.g.:
***
!table
!version 300
!charset WindowsLatin1

Definition Table
  File "m_1_1_1000.gif"
  Type "RASTER"
  (5.290517,48.2308475) (1392,987) Label "Pt 1",
  (5.25001439194036,48.25) (0,0) Label "Pt 2",
  (5.25001439194036,48.211695) (0,1974) Label "Pt 3",
  (5.33101960805964,48.25) (2784,0) Label "Pt 4",
  (5.33101960805964,48.211695) (2784,1974) Label "Pt 5"
  CoordSys Earth Projection 1, 104
  Units "degree"
***

why can it not be read by gdal?

thanks a lot
zhonghai

On 5/22/06, Mateusz Loskot <mateusz at loskot.net> wrote:

> Rahkonen Jukka wrote:
> > Very first you can try giving the full path to your images, I mean
> > c:\...\rasterdata\tem\*.gif. Let's see what happens.
>
> It should not be the case.
> I've checked gdaltindex from latest FWTools on Windows and
> it works with relative and absolute paths.
> Also, you can use forward or back slash:
>
> gdaltindex test.shp data/*.tif
>
> gdaltindex test.shp data\*.tif
>
> Although, gdaltindex usage message suggests to use the former version
> with Unix-like forward slash.
>
> Cheers
> --
> Mateusz Łoskot
> http://mateusz.loskot.net
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060522/bf337a65/attachment.html


More information about the mapserver-users mailing list