[osg-users] Maps & DTED data

409 views
Skip to first unread message

Michael Hall

unread,
Aug 17, 2012, 5:59:27 PM8/17/12
to OpenSceneGraph
I have a little alpplication I am doing to learn OSG.  I have also read the OSG 3.0 for Beginners book.  It has been helpful in learning more about how OSG works.

I have generated an earth.ive database from the BMNG east and west tifs.  I can display this database in my application.  I would like to now associate DTED data on that and then overlay maps.  What is the best way to do this? Would also like to display the lat/long of where the mouse is in the status bar of my application.  Any tips or suggestions are appreciated.

Chris Hanson

unread,
Aug 18, 2012, 8:25:31 PM8/18/12
to OpenSceneGraph Users
On Fri, Aug 17, 2012 at 3:59 PM, Michael Hall <hal...@att.net> wrote:
I have a little alpplication I am doing to learn OSG.  I have also read the OSG 3.0 for Beginners book.  It has been helpful in learning more about how OSG works.
I have generated an earth.ive database from the BMNG east and west tifs.  I can display this database in my application.  I would like to now associate DTED data on that and then overlay maps.  What is the best way to do this? Would also like to display the lat/long of where the mouse is in the status bar of my application.  Any tips or suggestions are appreciated.

  You're getting into the realm (multiple data layers) where osgEarth significantly makes your life easier. Have you considered using it?
 

--
Chris 'Xenon' Hanson, omo sanza lettere. Xe...@AlphaPixel.com http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Digital Imaging • GIS • GPS • Telemetry • Cryptography • Digital Audio • LIDAR • Kinect • Embedded • Mobile • iPhone/iPad/iOS • Android

Michael Hall

unread,
Aug 21, 2012, 3:13:32 PM8/21/12
to OpenSceneGraph Users
Yes, I have heard of it and have actually downloaded it.  I don't think I have installed it on my new Laptop I am using.  I am not sure exactly its purpose.  I know it says something about terrains.  Is it library like OSG?  I will have to look at it this evening.  Any more info would be great.
 
Thanks,
Michael


From: Chris Hanson <xe...@alphapixel.com>
To: OpenSceneGraph Users <osg-...@lists.openscenegraph.org>
Sent: Sat, August 18, 2012 7:25:56 PM
Subject: Re: [osg-users] Maps & DTED data

Glenn Waldron

unread,
Aug 21, 2012, 3:31:17 PM8/21/12
to OpenSceneGraph Users
Michael,

osgEarth is a C++ terrain rendering SDK. It is built on top of OSG. It renders 3D terrains from elevation, imagery, and vector data sources, and it provides a ton of other geospatial tools and functionality as well.

  Main site: http://osgearth.org
 
Glenn Waldron / Pelican Mapping / @glennwaldron


_______________________________________________
osg-users mailing list
osg-...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Michael W. Hall

unread,
Aug 24, 2012, 7:35:31 PM8/24/12
to osg-...@lists.openscenegraph.org
I downloaded osgEarth and build. It is working. Now I need to dig into
it.

Thanks,
Michael

On Tue, 2012-08-21 at 15:31 -0400, Glenn Waldron wrote:
> Michael,
>
>
> osgEarth is a C++ terrain rendering SDK. It is built on top of OSG. It
> renders 3D terrains from elevation, imagery, and vector data sources,
> and it provides a ton of other geospatial tools and functionality as
> well.
>
>
> Main site: http://osgearth.org
> Source code: http://github.com/gwaldron/osgearth
> Forums: http://forum.osgearth.org/
>
> Glenn Waldron / Pelican Mapping / @glennwaldron
>
>
> On Tue, Aug 21, 2012 at 3:13 PM, Michael Hall <hal...@att.net> wrote:
> Yes, I have heard of it and have actually downloaded it. I
> don't think I have installed it on my new Laptop I am using.
> I am not sure exactly its purpose. I know it says something
> about terrains. Is it library like OSG? I will have to look
> at it this evening. Any more info would be great.
>
> Thanks,
> Michael
>
>
>

> ______________________________________________________________

Michael W. Hall

unread,
Aug 24, 2012, 8:56:38 PM8/24/12
to osg-...@lists.openscenegraph.org
My application uses Qt. Currently I have it just reading a .ive file
when it starts. This .ive was generated from the BMNG. I would like to
keep using this for the app, and apply my maps to it.

I would like to have a menu option to allow users to import maps into
the application. Importing the maps would be handled by a "Map Data
Manager". This would also allow the user to see the coverage they have
imported by selecting that type and the Map Data Manager would highlight
the maptiles in a specified color.

That is my main goal for now. I am doing this as a way to learn maps
and OSG and 3D programming. I have always been interested in maps and
want to do this to create a program that maybe useful to people.

I have downloaded some SRTM data that is in DTED format. I would like
to get this on my .ive earth on the fly. If some people can point me in
the right direction on how I can utilize osgEarth to help that would be
great. I am looking at the osgEarth Documentation as I type. Looks
like more research.

Thanks,
Michael

On Tue, 2012-08-21 at u15:31 -0400, Glenn Waldron wrote:
> Michael,
>
>
> osgEarth is a C++ terrain rendering SDK. It is built on top of OSG. It
> renders 3D terrains from elevation, imagery, and vector data sources,
> and it provides a ton of other geospatial tools and functionality as
> well.
>
>
> Main site: http://osgearth.org
> Source code: http://github.com/gwaldron/osgearth
> Forums: http://forum.osgearth.org/
>
> Glenn Waldron / Pelican Mapping / @glennwaldron
>
>
> On Tue, Aug 21, 2012 at 3:13 PM, Michael Hall <hal...@att.net> wrote:
> Yes, I have heard of it and have actually downloaded it. I
> don't think I have installed it on my new Laptop I am using.
> I am not sure exactly its purpose. I know it says something
> about terrains. Is it library like OSG? I will have to look
> at it this evening. Any more info would be great.
>
> Thanks,
> Michael
>
>
>

> ______________________________________________________________

Chris Hanson

unread,
Aug 24, 2012, 9:32:30 PM8/24/12
to OpenSceneGraph Users
On Fri, Aug 24, 2012 at 6:56 PM, Michael W. Hall <hal...@att.net> wrote:
My application uses Qt.  Currently I have it just reading a .ive file
when it starts.  This .ive was generated from the BMNG.  I would like to
keep using this for the app, and apply my maps to it.

  If you still have the BMNG data around, osgEarth can consume it directly, and not need your .IVE. 

  Alternately, you can feed it a VPB IVE as well. I don't know how well it can merge terrain from a VPB IVE with additional SRTM data.

I would like to have a menu option to allow users to import maps into
the application.  Importing the maps would be handled by a "Map Data
Manager".  This would also allow the user to see the coverage they have
imported by selecting that type and the Map Data Manager would highlight
the maptiles in a specified color.

  That's all UI that's up to you.
 
I have downloaded some SRTM data that is in DTED format.  I would like
to get this on my .ive earth on the fly.  If some people can point me in
the right direction on how I can utilize osgEarth to help that would be
great.  I am looking at the osgEarth Documentation as I type.  Looks
like more research.


// Add an elevationlayer (SRTM from a local GeoTiff file)
{
    GDALOptions gdal;
    gdal.url() = "c:/data/srtm.tif";
    ElevationLayer* layer = new ElevationLayer( "SRTM", gdal );
    map->addElevationLayer( layer );
}

One of the sample .earth files provided with osgEarth might illustrate this as well.

-- 

Michael W. Hall

unread,
Aug 24, 2012, 10:27:56 PM8/24/12
to osg-...@lists.openscenegraph.org
The DTED data I have has the .dt2 extension. Can osgEarth load that or
do you have to modify it somehow?

Chris Hanson

unread,
Aug 24, 2012, 10:44:07 PM8/24/12
to OpenSceneGraph Users
On Fri, Aug 24, 2012 at 8:27 PM, Michael W. Hall <hal...@att.net> wrote:
The DTED data I have has the .dt2 extension.  Can osgEarth load that or
do you have to modify it somehow?

  This is DTED, level 2. According to GDAL, which osgEarth uses:

  it should work fine. But you'll just have to try to make sure.

Glenn Waldron

unread,
Aug 25, 2012, 10:04:58 AM8/25/12
to OpenSceneGraph Users
On Fri, Aug 24, 2012 at 10:44 PM, Chris Hanson <xe...@alphapixel.com> wrote:
On Fri, Aug 24, 2012 at 8:27 PM, Michael W. Hall <hal...@att.net> wrote:
The DTED data I have has the .dt2 extension.  Can osgEarth load that or
do you have to modify it somehow?

  This is DTED, level 2. According to GDAL, which osgEarth uses:


Yes, it will read DTED via the GDAL driver. The only catch is that DTED uses an EGM96 vertical datum. osgEarth supports this, but cannot automatically read that information from the GDAL driver; so, you have to manually tell osgEarth about it by overriding the profile for your elevation layer like so:

<elevation name="height" driver="gdal">
    <url>...</url>
    <profile srs="wgs84" vdatum="egm96"/>
</elevation

The osgEarth forum is a good place to get help specific to the SDK:

Good luck!

Glenn Waldron / @glennwaldron 
Reply all
Reply to author
Forward
0 new messages