[Gdal-dev] easy way to create tile index of dted (dt0) files?

Frank Warmerdam warmerdam at pobox.com
Fri Oct 6 10:20:27 EDT 2006


Holger Wilken wrote:
> I want to create a tile index of dted files (dt0) as a shapefile (shp), to show the boundaries of dted cells on my map.
> 
> So far, I have succeeded in using the steps:
> - generate a file with all dt0 filenames (dir /b /s *.dt0 > all_dt0.txt)
> - use the DOS FOR command in combination with gdal_translate and the all_dt0.txt file to build a geotiff for each dt0 file
> - use gdaltindex on the resulting tif files to create a tile index.
> 
> my question: is there another (faster) way to create the tile index directly out of the dt0 files, without the detour via tif? 
> 
> thanks in advance

Holger,

I'm not sure why you converted them to TIFF.  Gdaltindex will work fine
against .dt0 files.  As long as your gdaltindex is built with wildcard
support on windows (as the one in FWTools is for instance) you should
be able to just do something like:

  gdaltindex index.shp *.dt0

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org




More information about the Gdal-dev mailing list