Forum

Author Topic: XML Blocks Exchange import issue  (Read 2795 times)

GGR

  • Newbie
  • *
  • Posts: 30
    • View Profile
XML Blocks Exchange import issue
« on: January 05, 2021, 02:25:27 PM »
Hey !

I'd like to import cameras positions and calibrations data produced by ContextCapture so I managed to get an XML Blocks Exchange file as well as the concerned cameras. I precise that I've loaded NGF-IGN69 geoid model (EPSG::5119) which is used as coordinate system in my project.

As an example, here is a part of the XML Blocks Exchange :
Code: [Select]
        <Photo>
          <Id>55610</Id>
          <ImagePath>D:/IMAGES/Left/09_137_124824_203_Left.jpg</ImagePath>
          <Component>1</Component>
          <Pose>
            <Rotation>
              <Omega>-44.2294659638294</Omega>
              <Phi>-8.98957986763937</Phi>
              <Kappa>-81.0641551920933</Kappa>
              <Accurate>true</Accurate>
            </Rotation>
            <Center>
              <x>705884.750718091</x>
              <y>7061439.17630715</y>
              <z>773.699714511843</z>
              <Accurate>true</Accurate>
            </Center>
            <Metadata>
              <SRSId>0</SRSId>
              <Rotation>
                <Omega>135.77379</Omega>
                <Phi>8.97211999999996</Phi>
                <Kappa>81.04876</Kappa>
                <Accurate>true</Accurate>
              </Rotation>
              <Center>
                <x>505872.457</x>
                <y>5610891.335</y>
                <z>773.346</z>
                <Accurate>true</Accurate>
              </Center>
            </Metadata>
          </Pose>
          <NearDepth>587.593386139714</NearDepth>
          <MedianDepth>1131.75971060136</MedianDepth>
          <FarDepth>1382.12451767816</FarDepth>
          <ExifData />

Here is now the export of the estimated view reference pan of Metashape after importing XML :
Code: [Select]
09_137_124824_203_Left.jpg
x : 705884.750718
y : 7061439.176307
z : 817.664289
omega : -179.987093
phi : 0.012384
kappa : 0.000929

Regarding planimetrics data, the three lasts decimals are skipped, which is right.
The altimetric value seems to be modified, it passes from around 773 to 817m. Omega, phi and kappa data are also modified. Basically, cameras orientations are inverted upward instead of being downward (see attachment).
Cameras calibrations groups (obliques and nadirs) are also skipped.
For further investigations, I could also attached the XML concerned.

Could you precise how data are converted from the XML Blocks Exchange to the Metashape so I could figure if the issue comes from natives data, transformations applied, or my workflow.

Thanx by advance.
Best regards
Gabriel