Last modified: 2013-09-29 03:24:37 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.
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.
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.
Thanks for the update Jeroen. Looking forward to the final fix :)
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.
(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.
(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?
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 :(
Fixed on master as demonstrated by https://semantic-mediawiki.org/wiki/Semantic_Maps_examples/Distance_query