Page MenuHomePhabricator

Coord::bboxAround() works only on Earth
Open, LowPublic

Description

Math::wrapAround( $res->lon1, $res->lon2, -180, 180 );

Needs to take the globe into account.

Event Timeline

Gehel triaged this task as Low priority.May 6 2024, 3:37 PM
Gehel moved this task from needs triage to Geodata on the Discovery-Search board.

Change #1031548 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/GeoData@master] [WIP] Change Math::distance to accept Coord instances

https://gerrit.wikimedia.org/r/1031548

Change #1040728 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/GeoData@master] Fix Coord::bboxAround() not supporting non-Earth globes

https://gerrit.wikimedia.org/r/1040728

Change #1040728 merged by jenkins-bot:

[mediawiki/extensions/GeoData@master] Fix Coord::bboxAround() not supporting non-Earth globes

https://gerrit.wikimedia.org/r/1040728