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 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
> To: HOT , Talk-CA OpenStreetMap
>
> Subject: [Talk-ca] counting buildings - ( 2020 project ) - help
> please.
> Message-ID:
> 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
> To: john whelan , talk-ca
>
> 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 wrote:
> (a lot about how hard it is to query our data).
>
>
>