Extension talk:GeoData

Jump to: navigation, search

About this board

Edit description
By clicking "Add topic", you agree to our Terms of Use and agree to irrevocably release your text under the CC BY-SA 3.0 License and GFDL

Does gsglobe= work for any value other than "earth"?

1
Gapfall (talkcontribs)

https://en.wikipedia.org/w/api.php?action=query&list=geosearch&gspage=Gale%20(crater)&gsglobe=mars&gsradius=10000&gslimit=10 returns "Unrecognized value for parameter "gsglobe": mars." - does gsglobe actually recognise any parameters other than "earth" at the moment?

Reply to "Does gsglobe= work for any value other than "earth"?"

MobileFrontend Nearby + GeoData does not work with unverified websites in Chrome 50+

1
RFlan (talkcontribs)

SSL is required in order for Chrome to allow a website to ask for a user's location.

Reply to "MobileFrontend Nearby + GeoData does not work with unverified websites in Chrome 50+"

Confusion on Database, dimension, precision

1
Jc3s5h (talkcontribs)

The page contains the passage "This extension adds a new parser function, {{#coordinates:}}, that saves coordinates to the database. Function's input format is made as compatible as possible with GeoHack"

I don't understand what database is being referred to. Does it mean WikiData? Does adding coordinates to a Wikipedia article add the coordinates to WikiData? (That seems unlikely.)

Also, there is a conflict between WIkiData and this page. WikiData Wikibase/DataModel has a precision field. It is not defined exactly what this represents, but the normal interpretation by a person with a technical background would be the uncertainty in the measurement process that produced the latitude and longitude. The DataModel used to have a dimension field, but that was deleted in March. This page has a dimension parameter.

The problem is that depending on the object and measurement method, we could have a large object with a point within it that has been precisely determined (e.g. the Washington Monument) or we could have a tiny object who's position has not been precisely determined (e.g. the Airy transit circle at the Royal Observatory, Greenwich).

Reply to "Confusion on Database, dimension, precision"
Gborgonovo (talkcontribs)

I have Extension:Maps, Extension:MobileFrontend, etc. etc. installed. Is it possible to center a map on the user position showing pages around it? Thank you.

Reply to "Map center on user position"
182.191.181.116 (talkcontribs)

Hi,

I am using following query to get pages near a coordinate. Is it possible i can get URL of [ages in return info as well.

https://en.wikipedia.org/w/api.php?action=query&list=geosearch&gsradius=10000&gslimit=100&gscoord=31.4290691%7C74.2649841&gsprop=country&continue=

I tried using prop=info&inprop=url but it doesn't works with this "list".

Can u please help.

Azeem

Reply to "Getting Page Url in list=geosearch"

questions about "Running GeoData with Solr"

1
Cxyshine (talkcontribs)

i have downloaded Solr-3.6.0,then extracted to d:\solr; here is the file structure of solr :

fileStructureOfSolr

my questions:

1:i follow this instruction ==>"Copy solr/schema.xml to desired Solr core's configuration directory (if you have only one core and you don't want to use it for anything else, just use collection1, its config dir with Debian-packaged Solr is /etc/solr/conf)." where can i get solr/schema.xml ? i didn't see it.but i see a schema.xml in "D:\solr\example\solr\conf". if i use the schema.xml in conf ,then where is "/etc/solr/conf" ? where should i put the D:\solr\example\solr\conf\schema.xml in ?

2:"Set $wgGeoDataSolrHosts and $wgGeoDataSolrMaster in LocalSettings.php to your server hostname(s)/IP(s)" i set like this $wgGeoDataSolrHosts ='192.168.137.1';$wgGeoDataSolrMaster = '192.168.137.1'; is it right ?

3:"Run php solrupdate.php from cronjob." but where is the solrupdate.php? i did not find it in my computer

Reply to "questions about "Running GeoData with Solr""
NyirNyir (talkcontribs)

Hi, I'm using the "geosearch" end-point to find cities at certain coordinates. However due to the limit on the number of search results it happens quite often that no cities are returned in favour of landmarks and other results. It would be great if at least filtering for one/many types of coordinates could be done on the server instead of sending lots of data around.

So, are there already plans for this and would you consider patches for this functionality?

Reply to "Filter results server-side?"
37.77.117.146 (talkcontribs)

Hi, when I save a page, I get this error:

A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was: (SQL query hidden) from within function "GeoDataHooks::doSmartUpdate". Database returned error "1054: Unknown column 'gt_lat_int' in 'field list'

Any fix for this?

Rotsee (talkcontribs)

Did you really run the update script after installing? Any errors when you did?

37.77.117.146 (talkcontribs)

Yes, I run the update script without any error... seems not to create gt_spatial index. I found a solution to the bug here Bug 62127, but it is not explained how to set up the tables...

Reply to "Database error"
Zolo (talkcontribs)

Is there any way to use this extension through Lua other than "frame:callParserFunction" and co ?

Reply to "Lua ?"
Le Deluge (talkcontribs)

Any chance of increasing the maximum search radius? 10km isn't much use in places like Scotland because there just isn't the density of population/articles. I'd happily trade half the maximum number of articles in return for the search radius going up to 30km or even 50km.

Ricordisamoa (talkcontribs)

You can customize the maximum search radius in your own wiki with

$wgMaxGeoSearchRadius = 30000;

But if you want that to be changed across all Wikimedia projects, then you should file a bug in Bugzilla.

Reply to "Greater distances?"