I'd like to find Objects where certain Keys have the same value. Irish streets normally have two names, one in Irish and one in English. In osm the have three tags for that, name, name:en and name:ga. I'd like to find all objects having all three tags where name doesn't match with name:en or name:ga. asked 29 May '15, 08:17 Ogmios |
It's not possible with Overpass API today, but with a bit of post-processing you can get the results in a few minutes. The Overpass QL query below returns relevant nodes/way/rel having a name, name:en and name:ga tag in CSV output format (tab separator character). To get the data, just click on the following overpass turbo link: http://overpass-turbo.eu/s/9FN and then hit "Export" -> "raw data directly from Overpass API". This should automatically open LibreOffice or Excel, depending on your local machine. When importing the CSV file, make sure to specify "tab" as separator character. There are only 11120 rows returned by the query, about 300 of them match your search criterion. Just add a formula to all rows to compare different names and you're probably all set.
Overpass QL result in CSV format, as returned by Overpass API:
answered 29 May '15, 16:53 mmd |
Overpass isn't the only tool out there. Here's an alternative :
This give a result like this:
answered 29 May '15, 18:21 Vincent de P... ♦ That looks good. I will definately try it. Thanks.
(29 May '15, 18:23)
Ogmios
1
Downloading an extract (100MB) and creating an sqlite db from it (= 2,x GB(!)) seems a bit heavy to me for 11000 relevant objects. As an alternative to using a Geofabrik country extract, I'd really recommend to start with a small Overpass extract instead: http://overpass-turbo.eu/s/9FQ -> Export -> raw data directly from Overpass API. The download will be around 12MB uncompressed OSM data (query takes about 1 minute), the resulting sqlite DB file size will be just 19MB. Also, it would be good to have some sql statements for nodes and relations as well to make the example complete.
(31 May '15, 17:23)
mmd
Didn't have an estimate of the number of matches until you wrote your answer. Overpass and spatialite are both great tools with strenghts and weaknesses, it's good to know them both.
(31 May '15, 21:39)
Vincent de P... ♦
You don't have to install it now - just use the Wikidata+OSM sparql query - answer below :)
(06 Sep '17, 08:35)
nyuriks
|
For those searching for a solution via internet search: It's now possible within Overpass: http://overpass-turbo.eu/s/EYC
I'm sure it can be developed further. answered 04 Jan '19, 21:39 DaveF |
I can't answer your query but are you aware that we have our own instance of overpass at http://overpass-turbo.openstreetmap.ie/ There are some folks in the Irish chatroom who might be able to assist also http://wiki.openstreetmap.org/wiki/WikiProject_Ireland#Contacting_Irish_Mappers answered 29 May '15, 14:56 DaCor Thats neat but it throws an error with my query: "Error: runtime error: open64: 111 Connection refused /home/roles/overpass/db//osm3s_v0.7.52_osm_base Dispatcher_Client::3"
(29 May '15, 17:06)
Ogmios
|
You can use OSM+Wikidata service to find it.
answered 06 Sep '17, 08:08 nyuriks |