Last modified: 2013-09-29 03:24:37 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 T48371, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 46371 - Semantic Maps 2.0.1.2 distance queries broken.
Semantic Maps 2.0.1.2 distance queries broken.
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
SemanticMaps (Other open bugs)
master
All All
: Unprioritized normal with 2 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-03-20 17:08 UTC by Neill Mitchell
Modified: 2013-09-29 03:24 UTC (History)
4 users (show)

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


Attachments

Description Neill Mitchell 2013-03-20 17:08:09 UTC
Hi.

I'm running SMW 1.8.0.4, Maps 2.0.1, Semantic Maps 2.0.1.2, Validator 0.5.1 on MW 1.19.4.

It looks like distance queries have stopped working. I have:
{{#vardefine:lat_long|{{#geocode:SO16 0TH,UK}}}}

{{#ask:[[Category:Organisations]][[Coordinates::{{#var:lat_long}} 10km]]|?Headline=|?Address|?Location|?Postcode|?Coordinates|center={{#var:lat_long}}|format=googlemaps|width=920|height=640|forceshow=yes|icon=Flag_red.png|zoom=12|autozoom=off|limit=100|searchlabel=}}

and it shows an error:
"The following coordinate was not recognized: 50 50' 48" N, 1 28' 9" W 10km"

This works on a previous version of the same site running Maps 1.0.5 and Semantic Maps 1.0.5.

In fact, even the example at http://semantic-mediawiki.org/wiki/Semantic_Maps_examples/Distance_query is showing an error. It is only showing anything because the way SMW defaults to outputting all results if the query has an error.

Thanks.
Comment 1 Neill Mitchell 2013-03-20 17:13:26 UTC
I tried putting the distance in brackets like the example (although it's always worked before without)

{{#ask:[[Category:Organisations]][[Coordinates::{{#var:lat_long}}
(10km)]]|?Headline=|?Address|?Location|?Postcode|?Coordinates|center={{#var:lat_long}}|format=googlemaps|width=920|height=640|forceshow=yes|icon=Flag_red.png|zoom=12|autozoom=off|limit=100|searchlabel=}}
 
But then no map is shown at all.
Comment 2 Jeroen De Dauw 2013-03-23 03:26:59 UTC
Even if the parsing part worked, the query code has a bad off by one error in it... The later has been fixed on master, the former still needs tackling.
Comment 3 Neill Mitchell 2013-03-28 10:24:55 UTC
Thanks for the update Jeroen. Looking forward to the final fix :)
Comment 4 Chippyrof 2013-04-17 08:37:23 UTC
It would be nice to see this fixed and also some working examples of this extension actually working as well as documentation of any sort.
Comment 5 Dan Bolser 2013-05-07 21:09:47 UTC
(In reply to comment #4)
> It would be nice to see this fixed and also some working examples of this
> extension actually working as well as documentation of any sort.

I've done some work on migrating (the very comprehensive) documentation from http://mapping.referata.com/wiki/User_manual to http://semantic-mediawiki.org/wiki/Maps

Please help!

Dan.
Comment 6 Dan Bolser 2013-05-07 21:10:13 UTC
(In reply to comment #2)
> Even if the parsing part worked, the query code has a bad off by one error in
> it... The later has been fixed on master, the former still needs tackling.

Where should we look to start work on this?
Comment 7 Neill Mitchell 2013-05-29 16:43:47 UTC
Looks like users of SMW 1.8+ are stuffed. Upgrading existing sites to SMW 1.8+ is also not possible if mapping is required because of this bug :(
Comment 8 Jeroen De Dauw 2013-09-29 03:24:37 UTC
Fixed on master as demonstrated by https://semantic-mediawiki.org/wiki/Semantic_Maps_examples/Distance_query

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


Navigation
Links