Registration export datum other than WGS 84

My images are referenced to seleographic (Moon) control points and I am trying to export planetocentric camera poses using Export > Registration in RealityScan 2.0.1. I have tried XYZ heading/pitch/roll (although Colmap format has the same issue). I was careful to choose Coordinate System: Project output.

I have specified the following custom coordinate systems in a local.xml file and changed my project coordinate system to MOON_LONGLAT and output coordinate system to MOON_CENTERED:

But exported camera XYZ coordinates always appear as if the WGS 84 coordinate system is used. For example, here is one of my GCPs after alignment that is displayed correctly in the Moon longlat system:

As can be seen from the GCP, the survey target is roughly at 44.1 degrees north, 19.5 degrees west, altitude -2631 m. Plugging these figures into gdaltransform gives:

$ echo “-19.5 44.1 -2631” |gdaltransform -s_srs ‘+proj=longlat +a=1737400 +b=1737400 +no_defs +type=crs’ -t_srs ‘+proj=geocent +a=1737400 +b=1737400 +no_defs +type=crs’
1174326.97040747 -415850.990444991 1207247.94623165

These XYZ values are roughly what I would expect.

However, in my registration export csv I get incorrect values such as the following:

4331592.902058617,-1534367.917683161,4415285.569108639,-69.11530513829301,56.46322609507894,4.160717252731851

4331413.96503805,-1534320.795447757,4415295.486985723,-69.10845355903031,56.36617659848122,4.108447263335862

These values roughly correspond to what you would get if we assume that RealityScan was converting coordinates using a WGS 84 datum. To confirm, I tried gdaltransform again:

$ echo “-19.5 44.1 -2631” |gdaltransform -s_srs ‘+proj=longlat +datum=WGS84 +no_defs’ -t_srs ‘+proj=geocent +datum=WGS84 +no_defs’
4322823.24826449 -1530791.99797794 4414246.74210373

How can I make RealityScan respect my custom datum when exporting?

Hi @dirkp3001

This is an interesting use case. How do your definitions look? Is there also defined the used ellipsoid? Can you try to use only MOON_CENTERED system?