<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Calculating Rotation Matrix from Yaw/Pitch/Roll (CC SDK)</title><link>https://communities.bentley.com/products/3d_imaging_and_point_cloud_software/f/contextcapture-descartes-pointools-forum/200751/calculating-rotation-matrix-from-yaw-pitch-roll-cc-sdk</link><description>I have a use case where I need to update the metadata for each photo from a data file that has more accurate position and yaw/pitch/roll data than what is contained in each photo&amp;#39;s exifdata. 
 Through the SDK, I am able to modify each photo&amp;#39;s PoseMetadata</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Calculating Rotation Matrix from Yaw/Pitch/Roll (CC SDK)</title><link>https://communities.bentley.com/thread/599731?ContentTypeID=1</link><pubDate>Thu, 23 Jul 2020 00:18:53 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:d8e2ff9a-3918-453a-9eae-502c403bbf8a</guid><dc:creator>Ed K</dc:creator><description>&lt;p&gt;Issue resolved.&lt;/p&gt;
&lt;p&gt;The rotation matrix was in ECEF (EPSG:4978) format&amp;nbsp;despite&amp;nbsp;that the SRS of the photo poseMetadata was WGS 84. It appears that the rotation matrix is always in ECEF within the SDK.&lt;/p&gt;
&lt;p&gt;To convert the rotation matrix to ECEF, I multiplied&amp;nbsp;it with the inverse of &lt;em&gt;SRSTransformation(posemetadata_srs,&amp;quot;&lt;span&gt;EPSG:4978&amp;quot;&lt;/span&gt;).getRotation(photo.poseMetadata.center)&lt;/em&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>