Re: [osg-users] [vpb] Flat Database Generation in Meters really shocked me when i load it to my osg application..!!!

2011-05-06 Thread Atilla Selem
Hi Shayne, Hi Glenn, Thanks for ur kind replies.. Shayne, As you know MyTerrain.tif file projection info was; Geographic ( Latitude / Longitude ) [N:36, E128] [N:38, E130] is in Utm Zone 52 Datum : WGS84 Unit : Arc degrees. i tried to reproject MyTerrain.tif file using ur gdalwarp command like

Re: [osg-users] [vpb] Flat Database Generation in Meters really shocked me when i load it to my osg application..!!!

2011-05-06 Thread Atilla Selem
Hi Glenn, i have reprojected MyTerrainImage.tif from GCS ( Geographic coordinate system ) to UTM using GlobalMapper successfully, Should i re-project Dted-2 Elevation files to UTM projection as well? İf so; Should i use osgdem command like this; osgdem --cs +proj=utm +zone=52 -d MyDteds -

[osg-users] [vpb] Flat Database Generation in Meters really shocked me when i load it to my osg application..!!!

2011-05-05 Thread Atilla Selem
Hi, i have tried to generate a terrain (.ive) database using osgdem commandline options in order to buid a flat database where coordinates are in meters. After successfull generation i put that terrain in my osg application and really shocked! Before telling you what i saw as the output let me

[osg-users] [vpb] Flat Database Generation in Meters really shocked me when i load it to my osg application..!!!

2011-05-05 Thread Atilla Selem
Hi, i have tried to generate a terrain (.ive) database using osgdem commandline options in order to buid a flat database where coordinates are in meters. After successfull generation i put that terrain in my osg application and really shocked! Before telling you what i saw as the output let me

Re: [osg-users] [vpb] Flat Database Generation in Meters really shocked me when i load it to my osg application..!!!

2011-05-05 Thread Glenn Waldron
Atilla, osgdem is creating your model in what's called a plate carre projection -- in which degrees are simply reinterpreted as meters. That is why your 2x2 degree cell is appearing as 2x2 meters. You need to reproject into a proper projected spatial reference system (like UTM) to get the correct

Re: [osg-users] [vpb] Flat Database Generation in Meters really shocked me when i load it to my osg application..!!!

2011-05-05 Thread Atilla Selem
Hi Glenn, Thanks for the tip.. but i really need to know, Where should i do reprojection? In my dted-2 files and/or in my GeoTiff.file (since their projections are both Geographic - Lat/Lon) before executing osgdem? Or should i do re-scaling or whatever after i load terrain in osg application?

Re: [osg-users] [vpb] Flat Database Generation in Meters really shocked me when i load it to my osg application..!!!

2011-05-05 Thread Glenn Waldron
I recommend reprojecting them first. You can use gdalwarp, or a tool like Global Mapper. You may also want to investigate osgEarth as an alternative approach to doing terrain with OSG. Glenn Waldron / Pelican Mapping / @glennwaldron On Thu, May 5, 2011 at 1:08 PM, Atilla Selem