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 <[EMAIL PROTECTED]> 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

Reply via email to