i 'm looking to get info on all catholic churches in Europe. Specifically, I’d love to get:
their address
Denomination
Active/Not
Contact Info (website, email, phone)
and any other info I can get. … best would be in CSV-formate
well we ve got several **aproaches: **
- use overpass-tubro.eu; - this would be just great!
- we can get a list of all “places of worship” by downloading bulk osm files from geofabrik.de and then using use osmfilter or osmosis to select only certain tags, for example: wiki.openstreetmap.org/wiki/Tag:amenity=place_of_worship
to use the Open StreetMap data with Nominatom for a base file.
This should get the #1 and then we can get #2 just by text mining their titles.
For #3 I believe the closest you’ll get is just to use the most recent available data.
For #4 I think we’d need to do original data scraping from the Internet - at least to get their websites (I’m not sure on this one, actually).
btw: see a List of Catholic dioceses (structured view)
https://en.wikipedia.org/wiki/List_of_Catholic_dioceses_(structured_view)#Episcopal_Conference_of_France
which option would you use to find out more…
**update: ** well i did some research - and found interesting approaches:
question: … how to extract a list of churches from OSM with their name, their coordinates and the name of the lower administrative division they belong to. I managed to get the first ones with:
**Answer: ** I suggest to search for amenity=place_of_worship as well. There are 864226 of them (nodes and ways), while building=church only has 200886. For the admin division, you have to look into admin_level. It depends on your study area how deep they are detailed. –
btw: Similar to an example in the Overpass by Example library, I’d suggest to use the following query:
Church building ways in an area : When applying this technique to ways, one has to keep in mind that the is_in statement only works on nodes. For this reason, we first have to determine all nodes for a way.
try it in overpass-turbo
**Step-by-step explanation how this query works: **
It iterates over each building=church in your area
determines all nodes for each building
find out in which areas those nodes are (this is the actual georeferencing step)
filter out all areas with boundary=administrative and admin_level between 2 and 8 (you can adjust those if needed).
print out the center point of the church building way generates an artificial element with the same way id and an additional element is_in, which lists all administrative boundaries the church is in.
prints out artificial element
Note that the query returns two ways for each church, one with a center node, and one with an is_in entry but without geometry. At this time, you have to manually merge those two ways. In a later version of Overpass API this will change, though, returning only one single result including geometry.
The line containing georeferencing information looks as follows:
results: in csv gist.github.com/mmd-osm/10e867cfcfbe15fcef65867e64b6630e
Note: all looks pretty interesting and helpful - but these three lines are quite a bit too complicated
i have some dificulties to add concrete values here - anybody can help out here with a full working example!?