Re: [Talk-ca] counting buildings - ( 2020 project ) - help please.

2018-09-12 Thread OSM Volunteer stevea
On Sep 12, 2018, at 11:06 AM, john whelan  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
___
Talk-ca mailing list
Talk-ca@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-ca


Re: [Talk-ca] counting buildings - ( 2020 project ) - help please.

2018-09-12 Thread john whelan
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  wrote:
> (a lot about how hard it is to query our data).
___
Talk-ca mailing list
Talk-ca@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-ca


Re: [Talk-ca] counting buildings - ( 2020 project ) - help please.

2018-09-12 Thread OSM Volunteer stevea
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).
___
Talk-ca mailing list
Talk-ca@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-ca


[Talk-ca] counting buildings - ( 2020 project ) - help please.

2018-09-12 Thread john whelan
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
___
Talk-ca mailing list
Talk-ca@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-ca