There is already directory loading support in osgdem. However, it tries to load _all_ of the files in the named directories. That means it will fail if the data format requires more than one file per dataset. (e.g., Edas Imagine format which uses *.img, *.ige, *.rde, etc.)
But, if you can translate your data into a single file per dataset format (such as geoTIFF) then you may see more success. I know that it has worked for me. Thom > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:osg-users- > [EMAIL PROTECTED] On Behalf Of Wojciech Lewandowski > Sent: Thursday, February 22, 2007 12:10 PM > To: osg users > Subject: Re: [osg-users] using osgdem with thousands of input files > > Thanks, I will do it if there is no other option. I hoped that maybe GDAL > has undocumented support for such filelists ;-). > > Cheers, > Wojtek > > ----- Original Message ----- > From: "Robert Osfield" <[EMAIL PROTECTED]> > To: "osg users" <[email protected]> > Sent: Thursday, February 22, 2007 6:03 PM > Subject: Re: [osg-users] using osgdem with thousands of input files > > > > Hi Wojciech, > > > > Perhaps you could tweak osgdem to use a filename file of the > > directories, or create a text file with a list of all the files then > > add support into osgdem for reading the list of files from the text > > file instead of the command line. > > > > Another thing you could try is Cygwin see if it has better command line > > support. > > > > Robert. > > > > On 2/22/07, Wojciech Lewandowski <[EMAIL PROTECTED]> wrote: > >> > >> > >> Is there a way to run osgdem with list of files to proceed given as > >> separate > >> file ? > >> I am looking for some solution where command line would be simple and > >> look > >> like this: > >> > >> > osgdem -t images.filelist -d elevation.filelist -o output.ive > >> > >> where images.filelist is a text file containing list of files to > process > >> separated by newlines > >> > >> [contents of images.filelist] > >> image_raster1.tiff > >> ... > >> image_rasterN.tiff > >> [eof] > >> > >> and elevation.filelist contains dem files to proceed. > >> > >> [contents of elevation.filelist] > >> elevation_raster1.aux > >> ... > >> elevation_rasterM.aux > >> [eof] > >> > >> > >> When we run command line with thousand of "-t/-d file" arguments > windows > >> give up. Command line too long. Under linux it may work but > unfortunately > >> we > >> use OSG with Windows ;-(. Directory option does not work for either > >> because > >> some of the unknown extensions in the directory are not read correctly > >> and > >> osgdem crashes. For example we have a DEM directory with .aux .dem and > >> .rrd > >> files. Only .aux files should be passed as arguments. .rrd and .dems > >> cause > >> crash when we use -d directory option. On the other hand .dem files > >> cannot > >> be removed from this directory because they are indirectly used by GDAL > >> when > >> .aux are loaded. > >> > >> Any workaround ideas ? > >> > >> Best Regards, > >> Wojtek Lewandowski > >> > >> _______________________________________________ > >> osg-users mailing list > >> [email protected] > >> http://openscenegraph.net/mailman/listinfo/osg-users > >> http://www.openscenegraph.org/ > >> > > _______________________________________________ > > osg-users mailing list > > [email protected] > > http://openscenegraph.net/mailman/listinfo/osg-users > > http://www.openscenegraph.org/ > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://openscenegraph.net/mailman/listinfo/osg-users > http://www.openscenegraph.org/ _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
