Re: [gdal-dev] script selecting the extent

2012-07-13 Thread Margherita Di Leo
On Fri, Jul 13, 2012 at 2:34 PM, Even Rouault wrote: > > > But I don't think you need to do any scripting. You could use "gdaltindex > an_index.shp *.tif" ( http://gdal.org/gdaltindex.html ) to create an > index of > all the files, and then with "ogrinfo an_index.shp -spat xmin ymin xmax > ymax",

Re: [gdal-dev] script selecting the extent

2012-07-13 Thread Even Rouault
Selon Margherita Di Leo : > Hi, > > I have more than 22000 GeoTiff's stored in a folder (the world coverage of > ASTER GDEM) and I have to select among them only those covering the Europe > area, in order to import them in GRASS. I was about to write a Python > script to do that (using gdalinfo),

[gdal-dev] script selecting the extent

2012-07-13 Thread Margherita Di Leo
Hi, I have more than 22000 GeoTiff's stored in a folder (the world coverage of ASTER GDEM) and I have to select among them only those covering the Europe area, in order to import them in GRASS. I was about to write a Python script to do that (using gdalinfo), but I felt like reinventing the wheel,