Last modified: 2011-11-17 21:25:03 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 T34407, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 32407 - Too big precision of geographic coordinates.
Too big precision of geographic coordinates.
Status: VERIFIED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Maps (Other open bugs)
unspecified
All All
: Unprioritized minor (vote)
: ---
Assigned To: Jeroen De Dauw
: patch, patch-need-review
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-11-14 19:05 UTC by Van de Bugger
Modified: 2011-11-17 21:25 UTC (History)
0 users

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


Attachments
Proposed patch. (871 bytes, patch)
2011-11-14 19:06 UTC, Van de Bugger
Details

Description Van de Bugger 2011-11-14 19:05:59 UTC
I use decimal minutes format:

    $egMapsCoordinateNotation = Maps_COORDS_DM;

Example of code:

    * [[Coordinates::45° 0.001' N, 45° 0.001' E]]
    * {{ #show: {{ FULLPAGENAME }} | ?Coordinates }}

Result:

    * 45° 0.0010000000000332' N, 45° 0.0010000000000332' E
    * 45° 0.0010000000200705' N, 45° 0.0010000000200705' E 

For current GPS-based applications, there is far too many decimal digits. 3 (or 4) digits will be enough for Maps_COORDS_DM format.

For applications where higher precision is desirable, configuration settings could be implemented.
Comment 1 Van de Bugger 2011-11-14 19:06:40 UTC
Created attachment 9445 [details]
Proposed patch.
Comment 2 Jeroen De Dauw 2011-11-14 19:11:37 UTC
Thanks for the patch :) Looks valid. Will verify and apply tomorrow.

Still haven't gotten commit access? :)
Comment 3 Jeroen De Dauw 2011-11-15 12:52:32 UTC
Applied in r103157
Comment 4 Van de Bugger 2011-11-17 21:25:03 UTC
Verified on r103511.

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


Navigation
Links