[Tagging] Tagging of Country Names

Sven Geggus lists at fuchsschwanzdomain.de
Fri Oct 28 09:51:54 UTC 2016


Andy Townsend <ajt1047 at gmail.com> wrote:

> Straying from the point slightly, but what would be really, really nice
> would be a worked example of a way of obtaining wikidata information
> as part of map data processing

There might be another option. Given a hstore database or wikidata column it
would be very easy to build a query_wikidata psql function which will query
wikidata like this:

select query_wikidata(tags->'wikidata') from planet_osm_point where ...;

This would be only a few lines of pl/pgsql wrapper code using pgcurl:
https://github.com/Ormod/pgcurl

Regards

Sven

-- 
"Software is like sex; it's better when it's free"
	                              (Linus Torvalds)

/me is giggls at ircnet, http://sven.gegg.us/ on the Web



More information about the Tagging mailing list