camera_footprint kmls - longitudes outside [-180, 180]

9 views
Skip to first unread message

Daniel Evans

unread,
Aug 29, 2025, 6:58:07 AM (10 days ago) Aug 29
to Ames Stereo Pipeline Support
Hi all,

I've encountered a case of an image near (but not crossing) the antimeridian where the KML footprint output contains coordinates that are both wrapped and unwrapped.

Is this expected behaviour? My expectation is that values would be trimmed to the range [-180, 180]. Skimming through some KML specifications, it doesn't seem to be explicitly forbidden for LineStrings (confusingly, it's forbidden for some geometry types but not others), but it is still a slightly surprising result.

I've attached an example KML and copied an excerpt showing the coordinates below.

Cheers,
Daniel

<coordinates>   181.407,70.9866,0
[...]
181.5,71.003,0
-178.493,71.0043,0
[...]
-178.324,70.9832,0
181.481,70.9477,0
181.488,70.949,0
181.495,70.9502,0
-178.498,70.9515,0
[...]
-178.329,70.9818,0
181.407,70.9866,0
[...]
181.495,70.9854,0
-178.495,70.9853,0
[...]
-178.331,70.9829,0
181.481,70.9477,0
181.486,70.9504,0
181.49,70.9531,0
181.494,70.9557,0
181.499,70.9584,0
-178.497,70.9611,0
[...]
-178.399,71.0194,0
</coordinates>
footprint.kml

Oleg Alexandrov

unread,
Aug 29, 2025, 11:33:57 AM (10 days ago) Aug 29
to Daniel Evans, Ames Stereo Pipeline Support
This looks like a bug in a corner situation, close to the 180 degree longitude. If you share privately a testcase, I can take a look.

--
You received this message because you are subscribed to the Google Groups "Ames Stereo Pipeline Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ames-stereo-pipeline...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ames-stereo-pipeline-support/CANnaQaZFrLnhgsGuS2DR1E-ZRxiY-thN7qWSvFac0Jh0q7cqQQ%40mail.gmail.com.

Daniel Evans

unread,
Sep 1, 2025, 4:13:17 AM (7 days ago) Sep 1
to Oleg Alexandrov, Ames Stereo Pipeline Support
To keep the mailing list in the loop, reproducing test case sent over to Oleg.

Cheers,
Daniel

Oleg Alexandrov

unread,
Sep 2, 2025, 11:52:46 AM (6 days ago) Sep 2
to Daniel Evans, Ames Stereo Pipeline Support
This was a bug (that in principle can affect logic beyond this tool). The latest build has the fix. Thank you for the report.

Reply all
Reply to author
Forward
0 new messages