Last modified: 2014-10-14 13:05:23 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T72934, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 70934 - Investigate issues with globe coordinate precision
Investigate issues with globe coordinate precision
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: High normal (vote)
: ---
Assigned To: Wikidata bugs
u=dev c=backend p=5 s=2014-09-23
:
Depends on:
Blocks: 64820 66653
  Show dependency treegraph
 
Reported: 2014-09-17 09:41 UTC by tobias.gritschacher
Modified: 2014-10-14 13:05 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Comment 1 Daniel Kinzler 2014-10-14 12:16:03 UTC
result of the investigation:

The GlobeCoordinateFormatter does not pass the precision stored in the GlobeCoordinateValue to the GeoCoordinateFormatter. The GeoCoordinateFormatter interprets the precision as the number of decimal places to show (in whatever the target format is). However, GlobeCoordinateParser generates precision values as fractions of a degree. 

To fix this, we have to:
1) change GeoCoordinateFormatter to interpret the precision option as a fraction of a degree.
2) change GlobeCoordinateFormatter to pass precision from the the GlobeCoordinateValue to the GeoCoordinateFormatter.
3) write round trip tests to assert parser and formatter are compatible.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links