https://bugzilla.wikimedia.org/show_bug.cgi?id=62105
Bug ID: 62105
Summary: globecoordinate serialization fails on some precision
values
Product: MediaWiki extensions
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: WikidataRepo
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Blocks: 55971, 62011
Web browser: ---
Mobile Platform: ---
I'm writing a bot to import coordinates to Wikidata and I ran into problems
with the "precision" field. For a lot of values it throws 'The value does not
comply with the property's definition.
The value's data value type "ununserializable" does not match the property's
data type's data value type "globecoordinate".'
Example json:
{'latitude': 41.9689, 'altitude': None, 'globe':
'http://www.wikidata.org/entity
/Q2', 'longitude': 12.4092, 'precision': 0.012082121278963331}
I did some testing on https://www.wikidata.org/wiki/Q3969823
* 0.012039052310050358 fails
* 0.012058 fails (round on 6 decimals)
* 0.00001 works (hard coded)
* 0.00002 fails (hard coded)
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l