<div dir="ltr">Filip,<div><br><div>osg::CoordinateSystemNode does not do any transformation. It is really just a container to hold information about the spatial reference of the data underneath. Furthermore, no, a 4x4 matrix not sufficient for geospatial reprojection. You will need to use the PROJ library for that.</div><div><br></div><div>FYI, in the osgEarth project there is a SpatialReference class that encapsulates PROJ transforms, so you might take a look at that.</div><div><br></div><div>Good luck!</div><div><br></div></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div>Glenn Waldron</div></div></div></div>
<br><div class="gmail_quote">On Wed, Apr 6, 2016 at 11:07 AM, Filip Arlet <span dir="ltr"><<a href="mailto:filip89@seznam.cz" target="_blank">filip89@seznam.cz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I'm working on a project for displaying geospatial data. I usually have data in some coordinate reference system. What I want now is transform them into another coordinate reference system (wgs84). Its not a big problem transforming coordinates on load or preparing data, but I would like to do it on the fly. Ie. keep data in one coordinate system and transfrom them to another. I found osg::CoordinateSystemNode but I cannot find any examples how to use it. Its CoordinateSystemNode class that I'm looking for? How to setup its params (preferably using Proj or GDAL or SRID) ?<br>
<br>
The transformation doesnt really have to be precise (I can always tranfer all data from one coordinate system to another if I want to publish data in different CRS, but supporting two coordinate reference systems at once would need to have data loaded twice).<br>
<br>
Is this even possible ? I mean transforming coordinate systems using 4x4 matrix ?<br>
<br>
Thank you!<br>
<br>
Cheers,<br>
Filip<br>
<br>
------------------<br>
Read this topic online here:<br>
<a href="http://forum.openscenegraph.org/viewtopic.php?p=66748#66748" rel="noreferrer" target="_blank">http://forum.openscenegraph.org/viewtopic.php?p=66748#66748</a><br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</blockquote></div><br></div>