Hi Wojciec et al.

Thanks for the modified file.   Could a unix hack fill in the gaps
that Wojciech has left, I have too much on my plate right now to add
another task.

Cheers,
Robert.

On 2/23/07, Wojciech Lewandowski <[EMAIL PROTECTED]> wrote:
I tweaked osgdem as you suggested. I have added option to work with
directory/wildcard paths (unfortunately for windows only - I left
placeholder function for some unix guru to fill) and added option modifier
"-filelist" to load file names from external file (hope this part will work
for unixlike systems as well).

I have attached modified osgdem.cpp code if someone decides it may be
useful. Feel free to do whatever you decide is appropriate with these
modifications (throw away or modify and include in repository ;-). If you
decide to keep it it may be good idea to modify and move readFileNameList &
getFileName list into osgDB.

Cheers,
Wojtek Lewandowski


----- Original Message -----
From: "Robert Osfield" <[EMAIL PROTECTED]>
To: "osg users" <osg-users@openscenegraph.net>
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
>> osg-users@openscenegraph.net
>> http://openscenegraph.net/mailman/listinfo/osg-users
>> http://www.openscenegraph.org/
>>
> _______________________________________________
> osg-users mailing list
> osg-users@openscenegraph.net
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
>


_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to