Last modified: 2013-01-08 23:25:06 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 T36277, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 34277 - [SM] search by property on coordinates produce no results because SM converts the coordinate format
[SM] search by property on coordinates produce no results because SM converts...
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
SemanticMaps (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-02-08 20:53 UTC by badon
Modified: 2013-01-08 23:25 UTC (History)
1 user (show)

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


Attachments

Description badon 2012-02-08 20:53:39 UTC
If you click on the magnifying glass icon next to the location property in the SMW factbox, here (login with Demo/test):

http://www.coincompendium.com/w/index.php/CCS1

It shows you a failed search by property, here (login with Demo/test):

http://www.coincompendium.com/w/index.php/Special:SearchByProperty/Location/40°-2044'-201%22-20N,-2073°-2046'-2049%22-20W

It appears to be because Semantic Maps is internally converting location coordinates from the underlying degree system property data:

40.7335179, -73.7801447

to the degree-minute-second system property data:

40° 44' 1" N, 73° 46' 49" W

which is (poorly) described here:

http://en.wikipedia.org/wiki/Geographic_coordinate_system
http://en.wikipedia.org/wiki/Geographic_coordinate_conversion

It appears Semantic Maps is giving unusable converted degree-minute-second data to SMW, which does not match the actual location property value in the degree system format, and so no results are returned. 

I suggest that Semantic Maps not convert the property value to another format that differs from the entered value. Although the converted value is easier for humans to read, it should also probably not do that unless configured to do so. The solution to this bug probably involves adding enhancements that give control over formatting to the wiki user, the wiki administrator, or both. 

The wiki user could use a parser function to convert to the desired format, and the wiki administrator could use features that configure the defaults - although I think that may be unnecessary.
Comment 1 Jeroen De Dauw 2013-01-08 00:03:00 UTC
Confirmed
Comment 2 Jeroen De Dauw 2013-01-08 00:03:27 UTC
on 1.7.1

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


Navigation
Links