Hi All, I found the combo of overpass and qGIS was a really good combo specifically for this sort of thing. Then you could export into R if you wanted to run stats (qGIS has a pretty good stats engine too) All you'd have to enter is the building tag as a search, and it'll return the results.
The web interface would be even faster for a non-GIS-er and you could dump it all into a nice .CSV. There's a few quick tutorials under 10 minutes that should get ya up to speed. https://vimeo.com/189554102 https://wiki.openstreetmap.org/wiki/Overpass_turbo and I'm by no means a "Ph. D " in OSM :) Happy Mapping, Keith On Thu, Sep 13, 2018 at 7:01 AM <talk-ca-requ...@openstreetmap.org> wrote: > Send Talk-ca mailing list submissions to > talk-ca@openstreetmap.org > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.openstreetmap.org/listinfo/talk-ca > or, via email, send a message with subject or body 'help' to > talk-ca-requ...@openstreetmap.org > > You can reach the person managing the list at > talk-ca-ow...@openstreetmap.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Talk-ca digest..." > > > Today's Topics: > > 1. counting buildings - ( 2020 project ) - help please. (john whelan) > 2. Re: counting buildings - ( 2020 project ) - help please. > (OSM Volunteer stevea) > 3. Re: counting buildings - ( 2020 project ) - help please. > (john whelan) > 4. Re: counting buildings - ( 2020 project ) - help please. > (OSM Volunteer stevea) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 12 Sep 2018 13:39:34 -0400 > From: john whelan <jwhelan0...@gmail.com> > To: HOT <h...@openstreetmap.org>, Talk-CA OpenStreetMap > <talk-ca@openstreetmap.org> > Subject: [Talk-ca] counting buildings - ( 2020 project ) - help > please. > Message-ID: > <CAJ-Ex1G9Ci2=cU6= > ujzfw0lilghntfcqhqoj9g-msf6oo7j...@mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > One problems with this mapping project is it is difficult to see how many > have been mapped. > > https://wiki.openstreetmap.org/wiki/WikiProject_Canada/Building_Canada_2020 > > So I've been playing. The .OSM data structure does not lend it self easily > to this sort of thing. In particular you don't know when you read a line > in if you want to count it or not. The critical thing is does the way > include building= if it does then we are interested in every tag even those > that have been read in previously. > > I started following Bjenk's footsteps with R but realistically setting up > the environment and parsing the file in R isn't that user friendly. > > So I dropped back to Visual Studio express which is free from Microsoft. > I've been working in the IDE environment and I have something that counts > ways at the moment. Extending it to nodes is relatively simple once I have > the ways working correctly. > > A very small sample output is below. > > > detached' - 3 > t2' - 2 > terraced' - 1 > > > addr:housenumber - 6 > addr:street - 6 > building:levels - 5 > addr:postcode - 3 > roof:shape - 1 > > #### > > I've just spotted that building types have an extra ' in the name. The > Comma Separated Values (CSV) were working so they can be fed into a > spreadsheet or some sort of stats program and 'Real Soon Now'™ it will be > working once more. > > The input is an .osm file so download and chop it up with OSMconvert64 to > give the area you are interested in. I have sample .bat files available > that do this. > > What I need is someone who has use for the information to look it over and > give feedback. Please contact me directly not through the group. > > Many Thanks > > Cheerio John > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://lists.openstreetmap.org/pipermail/talk-ca/attachments/20180912/ef0ffcb9/attachment-0001.html > > > > ------------------------------ > > Message: 2 > Date: Wed, 12 Sep 2018 10:55:19 -0700 > From: OSM Volunteer stevea <stevea...@softworkers.com> > To: john whelan <jwhelan0...@gmail.com>, talk-ca > <talk-ca@openstreetmap.org> > Subject: Re: [Talk-ca] counting buildings - ( 2020 project ) - help > please. > Message-ID: <642bd244-73a9-4ca7-abbe-d6be7bb1f...@softworkers.com> > Content-Type: text/plain; charset=us-ascii > > Whew, seems like overkill. Try "overpass turbo" (OT) for such queries. > Here is a sample, and the query language (OverPass QL) is text-based and > OSM-friendly, as it uses the tags you're searching for: > > http://overpass-turbo.eu/s/BQ6 > > When it dialogs that the query will return a lot of data, click the > "continue anyway" button and wait a few seconds. The data are returned > visually and you can export them in various formats (raw OSM data, GeoJSON, > GPX, KML). Look to the left column to see how easy the tags are and read > our wiki on OT for rich and rewarding documentation. > > Have fun, > > SteveA > California > > > On Sep 12, 2018, at 10:39 AM, john whelan <jwhelan0...@gmail.com> wrote: > (a lot about how hard it is to query our data). > > > ------------------------------ > > Message: 3 > Date: Wed, 12 Sep 2018 14:06:31 -0400 > From: john whelan <jwhelan0...@gmail.com> > To: OSM Volunteer stevea <stevea...@softworkers.com> > Cc: Talk-CA OpenStreetMap <talk-ca@openstreetmap.org> > Subject: Re: [Talk-ca] counting buildings - ( 2020 project ) - help > please. > Message-ID: > < > caj-ex1gee0sk2eh7ptwjc4w4ezt+kmuoloys7ar_nyutqfx...@mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > One of the requirements was to create something that did not require an > Internet connection or a Ph.D. in OpenStreetMap jargon. > > Another was the ability to combine the information with other data. > > As I mentioned I'm after end users rather than OSM technically > knowledgeable ones. > > Thank you for your thoughts and hopefully the answers will clarify what > sort of assistance I'm after. > > Cheerio John > > On Wed, 12 Sep 2018, 1:55 pm OSM Volunteer stevea, < > stevea...@softworkers.com> wrote: > > > Whew, seems like overkill. Try "overpass turbo" (OT) for such queries. > > Here is a sample, and the query language (OverPass QL) is text-based and > > OSM-friendly, as it uses the tags you're searching for: > > > > http://overpass-turbo.eu/s/BQ6 > > > > When it dialogs that the query will return a lot of data, click the > > "continue anyway" button and wait a few seconds. The data are returned > > visually and you can export them in various formats (raw OSM data, > GeoJSON, > > GPX, KML). Look to the left column to see how easy the tags are and read > > our wiki on OT for rich and rewarding documentation. > > > > Have fun, > > > > SteveA > > California > > > > > On Sep 12, 2018, at 10:39 AM, john whelan <jwhelan0...@gmail.com> > wrote: > > (a lot about how hard it is to query our data). > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://lists.openstreetmap.org/pipermail/talk-ca/attachments/20180912/576c3e07/attachment-0001.html > > > > ------------------------------ > > Message: 4 > Date: Wed, 12 Sep 2018 11:28:41 -0700 > From: OSM Volunteer stevea <stevea...@softworkers.com> > To: john whelan <jwhelan0...@gmail.com>, talk-ca > <talk-ca@openstreetmap.org> > Subject: Re: [Talk-ca] counting buildings - ( 2020 project ) - help > please. > Message-ID: <5ced8904-6ebc-4ada-9870-166386493...@softworkers.com> > Content-Type: text/plain; charset=us-ascii > > On Sep 12, 2018, at 11:06 AM, john whelan <jwhelan0...@gmail.com> wrote: > > One of the requirements was to create something that did not require an > Internet connection > > OK, yet I had no way of knowing that from your post. Though, that is an > "interesting" requirement for a crowdsourced, Internet-based map database. > > > or a Ph.D. in OpenStreetMap jargon. > > C'mon, John, I'm offering earnest help with a powerful tool familiar to a > great many OSM users and a drop-dead-simple query whose guts are: > > {{geocodeArea:Ottawa}}->.searchArea; > (way["building"="residential"](area.searchArea);); > > That's pretty much it, and you get your results in seconds visually or in > various export formats. > > > As I mentioned I'm after end users rather than OSM technically > knowledgeable ones. > > By substituting "node" for "way" or other text-strings for the keys or > values you're looking for, and with a multitude of output formats, this is > not Ph.D.-level stuff: it is designed to easily query OSM data, returning > results in familiar "map/visually" OR well-known geo datafile formats. It > isn't jargon-y, it IS used by "end users" and by OSM technically > knowledgeable ones alike. Using OSM data? (Yes, you are): use OSM-based > tools. You want jargon, use R. I'm trying to help create light, not heat. > > > Another was the ability to combine the information with other data. > > Export the results of OT queries, and ye shall. > > > Thank you for your thoughts and hopefully the answers will clarify what > sort of assistance I'm after. > > You are welcome, and I'll be curious to watch what happens. As I saw your > request for feedback is to be off-list, we who are on-list (I speak for > myself right here) appreciate hearing of any fruit your query may bear. > > Best regards, > SteveA > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > Talk-ca mailing list > Talk-ca@openstreetmap.org > https://lists.openstreetmap.org/listinfo/talk-ca > > > ------------------------------ > > End of Talk-ca Digest, Vol 127, Issue 8 > *************************************** >
_______________________________________________ Talk-ca mailing list Talk-ca@openstreetmap.org https://lists.openstreetmap.org/listinfo/talk-ca