[osg-users] [forum] [osgEarth] several problems and questions

Chris Hanson xenon at alphapixel.com
Fri Nov 25 11:32:17 PST 2016

> I load an not georeferenced 3D model and i have the geo information in
> other file : DATUUM, Projection system, EPSG and an offset in meter for
> cartographic system and in seconds for geo system. I looking for set those
> informations programatically. Set the SRS is not a big deal, but I don't
> know how to set the offset.
> I use a osgEarth::Map object with osgEarth::ModelLayer, I set the layer
> and put it in my map, then i set the SRS of my map :
> map->getSRS()->create(".....")

  I think this ais all you need to do:


GeoTransform* xform = new GeoTransform();
xform->setTerrain( mapNode->getTerrain() );
GeoPoint point(srs, -121.0, 34.0);


  So, the X and Y coordinates are either the latitude and logitude (if your
SRS's system is geographic) or X and Y (usually meters from the system's
origin) if it's a projected SRS.

  Does that answer your questions?

  If you have more questions, feel free to email me privately, as I don't
always see osgEarth questions on the OSG mailing list.

> Djoé

Chris 'Xenon' Hanson, omo sanza lettere. Xenon at 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
Legal/IP • Code Forensics • Digital Imaging • GIS • GPS •
osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile •
iPhone/iPad/iOS • Android
@alphapixel <https://twitter.com/alphapixel> facebook.com/alphapixel (775)
623-PIXL [7495]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20161125/66b99fce/attachment-0002.htm>

More information about the osg-users mailing list