Hi Linh, 1. Reply : if you use geotiff image (which meaning georeferenced tiff) you have to use like this command : osgdem -t sample.tif -d sample.tif -l 2 -v 0.08 -o result.ive -a result.osga
In this command you can change the -v parameters value between 1.0 <= -v <= 0.0 I think you would know why we use -l parameteres and value ranges. To get geotiff image you can use; http://geoengine.nga.mil/geospatial/SW_TOOLS/NIMAMUSE/webinter/rast_roam.html or http://seamless.usgs.gov/ And I think you only want to create your terrain you should look at http://www.palomino3d.org/pal/openscenegraph/ site. But I can't understand your second question. If you want to make your terrain visible when you run "osgviewer sample.osga" you will be seeing when you create your terrain by first question's reply. If you have any problem you can ask Linh.Good Luck.. ÜMİT UZUN ---------------------------------------- > Date: Tue, 12 Feb 2008 18:42:38 -0800 > From: [EMAIL PROTECTED] > To: [email protected] > Subject: [osg-users] how to read GeoTIFF files using osgdem? > > Hi, > > this is my first time trying to use osgdem on a GeoTIFF file and I > wasn't successful in viewing the > generated osga file. The data (from > http://webgis.wr.usgs.gov/ftphirise/index.jsp) look like this: > > % ls DEM_1m_VictoriaCrater* > DEM_1m_VictoriaCrater.asc.gz DEM_1m_VictoriaCrater.rrd > DEM_1m_VictoriaCrater.aux DEM_1m_VictoriaCrater.tif > DEM_1m_VictoriaCrater.prj > > % cat DEM_1m_VictoriaCrater.prj > > PROJCS["Plate_Carree",GEOGCS["EQUIRECTANGULAR_CYLINDRICAL_MARS",DATUM["D_MARS",SPHEROID["MARS",3396190,0]],PRIMEM["Reference_Meridian",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Plate_Carree"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",180],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["Meter",1]] > > I then use osgdem command: > > % osgdem -l 2 -d DEM_1m_VictoriaCrater.tif -o test.ive -a test.osga > > % osgviewer test.osga > > But I didn't see anything when osgviewer first came up, but I know > something is there because when > I spin it, I see something spin by really fast. My question are: > > 1. Is the "-d DEM_1m_VictoriaCrater.tif" argument to osgdem all I need > for a GeoTIFF file? > > 2. Is there a way for osgviewer to put the object in the center so I can > see it or do > I have to ask the USGS to generate the GeoTIFF DEM that has the DEM > in the center so I can see? > > Thank you very much, > > Linh > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _________________________________________________________________ Yeni nesil Windows Live Servisleri’ne şimdi ulaşın! http://get.live.com _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

