Hi,

you do not need to specify every file in a directory manually. I usually create a single directory for a layer (-t) and place my geotiffs in there. You then pass the directory as the parameter to -t.

jp

Lourdes Perez I wrote:
Hi,

Here it goes:

This one generates the 'complete' (the 'mosaic' one) map:

set PATH=%OSG_ROOT%\bin;%PATH%

REM where to find the source data

set SRC_DIR="C:\Users\paralaxe\Desktop\Terrenos\No Procesado"
set SRC_ELE=%SRC_DIR%\mdt29b.tif
set NUM_LVL=9
set TGT_DIR=C:\Users\paralaxe\Desktop\Terrenos\Procesado\Completo
set TGT_IVE=%TGT_DIR%\GaliciaP%NUM_LVL%.ive
if not exist %TGT_DIR% mkdir %TGT_DIR%
osgdem\osgdem -o %TGT_IVE% -t %SRC_DIR%\012911_3_1_1.ecw -d %SRC_ELE% -t %SRC_DIR%\012911_3_1_2.ecw -d %SRC_ELE% -t %SRC_DIR%\012911_3_1_4.ecw -d %SRC_ELE% -t %SRC_DIR%\012911_3_2_1.ecw -d %SRC_ELE% -t %SRC_DIR%\012911_3_2_3.ecw -d %SRC_ELE% -t %SRC_DIR%\012911_3_1_3.ecw -d %SRC_ELE% -t %SRC_DIR%\012911_3_2_2.ecw -d %SRC_ELE% -t %SRC_DIR%\012911_3_2_4.ecw -d %SRC_ELE% -t %SRC_DIR%\012911_3_3_3.ecw -d %SRC_ELE% -t %SRC_DIR%\012911_3_3_1.ecw -d %SRC_ELE% -t %SRC_DIR%\012911_3_3_2.ecw -d %SRC_ELE% -t %SRC_DIR%\012911_3_3_4.ecw -d %SRC_ELE% -t %SRC_DIR%\012911_3_4_1.ecw -d %SRC_ELE% -t %SRC_DIR%\012911_3_4_3.ecw -d %SRC_ELE% -t %SRC_DIR%\012911_1_1_13.ecw -d %SRC_ELE% -t %SRC_DIR%\012911_1_1_24.ecw -d %SRC_ELE% -t %SRC_DIR%\012911_1_2_1.ecw -d %SRC_ELE% -t %SRC_DIR%\012911_1_2_2.ecw -d %SRC_ELE% -t %SRC_DIR%\012911_1_2_3.ecw -d %SRC_ELE% -t %SRC_DIR%\012911_1_2_4.ecw -d %SRC_ELE% -t %SRC_DIR%\012911_1_3_1.ecw -d %SRC_ELE% -t %SRC_DIR%\012911_1_3_2.ecw -d %SRC_ELE% -t %SRC_DIR%\012911_1_3_3.ecw -d %SRC_ELE% -t %SRC_DIR%\012911_1_3_4.ecw -d %SRC_ELE% -t %SRC_DIR%\012911_1_4.ecw -d %SRC_ELE% -t %SRC_DIR%\012911_2_4_1.ecw -d %SRC_ELE% -t %SRC_DIR%\012911_2_4_3.ecw -d %SRC_ELE% -t %SRC_DIR%\012911_2_1_1.ecw -d %SRC_ELE% -t %SRC_DIR%\012911_2_1_2.ecw -d %SRC_ELE% -t %SRC_DIR%\012911_2_1_3.ecw -d %SRC_ELE% -t %SRC_DIR%\012911_2_1_4.ecw -d %SRC_ELE% -t %SRC_DIR%\012911_2_2_1.ecw -d %SRC_ELE% -t %SRC_DIR%\012911_2_2_2.ecw -d %SRC_ELE% -t %SRC_DIR%\012911_2_2_3.ecw -d %SRC_ELE% -t %SRC_DIR%\012911_2_2_4.ecw -d %SRC_ELE% -t %SRC_DIR%\012911_2_3_1.ecw -d %SRC_ELE% -t %SRC_DIR%\012911_2_3_2.ecw -d %SRC_ELE% -t %SRC_DIR%\012911_2_3_3.ecw -d %SRC_ELE% -t %SRC_DIR%\012911_2_3_4.ecw -d %SRC_ELE% -t %SRC_DIR%\012911_4_1_12.ecw -d %SRC_ELE% -t %SRC_DIR%\012911_4_2_12.ecw -d %SRC_ELE% -t %SRC_DIR%\012911_4_3_1.ecw -d %SRC_ELE% -t %SRC_DIR%\012911_4_3_2.ecw -d %SRC_ELE% -t %SRC_DIR%\012911_4_4_1.ecw -d %SRC_ELE% -l %NUM_LVL% -v 2.0
.
.


And this code generates a single image (one terrain fragment only):
.
.
set SRC_ELE=%SRC_DIR%\mdt29b.tif
set NUM_LVL=9
set TGT_DIR=C:\Users\paralaxe\Desktop\Terrenos\Procesado\segmento2
set TGT_IVE=%TGT_DIR%\GaliciaP%NUM_LVL%.ive
if not exist %TGT_DIR% mkdir %TGT_DIR%
osgdem\osgdem -o %TGT_IVE% -t %SRC_DIR%\012911_3_1_2.ecw -d %SRC_ELE% -l %NUM_LVL% -v 2.0 -e 510000 4680000 30000 30000
.
.


Thank you again

------------------------------------------------------------------------
¡El Mundo Messenger te espera! Entra ya en "I love Messenger" y descubre las últimas novedades, trucos, emoticonos. Entra ya en "I love Messenger" <http://www.vivelive.com/ilovemessenger/>


------------------------------------------------------------------------

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support.

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to