Re: [OSM-talk] General OSM Talk

2019-03-11 Thread Frederik Ramm
Hi,

On 10.03.19 15:10, Kate Chapman wrote:
> It has been about a year since I've given one of these talks. Is there
> anything new that you think is especially important or interesting I
> should be sure to not miss?

I have the impression that something that has been going on quietly,
without much fanfare, is how many mappers now participate in quality
assessment as part of their daily routine. The tool landscape is
scattered - you have the old(er) cohort of general QA tools like Osmose,
OSM Inspector, and even Keepright is still around, but you also have a
newer generation including OsmCha and "OSM Suspects" and other more
niche applications, and quite a few people are actually using these
services. QA used to be the domain of a few committed individuals but
meanwhile there's a proper "long tail" of QA contributors.

Bye
Frederik

-- 
Frederik Ramm  ##  eMail frede...@remote.org  ##  N49°00'09" E008°23'33"

___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] General OSM Talk

2019-03-11 Thread Jean-Marc Liotier
On Mon, March 11, 2019 9:23 am, Frederik Ramm wrote:
>
> I have the impression that something that has been going on quietly,
> without much fanfare, is how many mappers now participate in quality
> assessment as part of their daily routine. The tool landscape is
> scattered - you have the old(er) cohort of general QA tools like Osmose,
> OSM Inspector, and even Keepright is still around, but you also have a
> newer generation including OsmCha and "OSM Suspects" and other more
> niche applications, and quite a few people are actually using these

Years ago I started using WhoDidIt to patrol my area of interest as part
of my gardening routine, but it was not what it was designed for: great
for visualizing where activity occurs but clunky for patrolling. OSMCHA
bridged that gap - it gives me real-time monitoring with integrated
tooling to detect bad changesets and engage (especially new mappers) with
changesets comments (though whether they respond is another matter)...
Catching them early before problems accrue beats having to deal with
accumulated errors later.


___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


[OSM-talk] How to save Overpass query results to a GeoJSON file with Python?

2019-03-11 Thread Carlos Cámara Menoyo via talk
Dear colleagues,

I have just started to use Python and I would like to make a query to Overpass 
and store the results in a geospatial format (e.g. GeoJSON) so I can 
programatically update the data.

As far as I know, there is a library called overpy that should be what I am 
looking for. After reading [its 
documentation](https://python-overpy.readthedocs.io/en/latest/example.html) I 
came up with the following code:

import

overpy

API

=

overpy

.

Overpass

()

# Fetch highways within Granollers' city.

result

=

API

.

query

(

"""
area[name="Granollers"][admin_level=8];
// query part for: “highway=*”
(way["highway"](area);
relation["highway"](area);
);
// print results
out body;
"""

)

The thing is that I am not familiar at all with Python and I don't know how to 
store result as a GeoJSON file (Honestly, I don't even know what kind of thing 
result is -I tried with type(result) and I get overpy.Result as an output, 
which doesn't mean much to my poor knowledge). I have been reading overpy 
documentation but I haven't been able to figure it out.

Can anyone give me a clue with this?

Carlos Cámara-Menoyo
https://carloscamara.es___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] How to save Overpass query results to a GeoJSON file with Python?

2019-03-11 Thread Mateusz Konieczny



Mar 11, 2019, 11:18 AM by talk@openstreetmap.org:

> Dear colleagues,
>
> I have just started to use Python and I would like to  make a query to 
> Overpass and store the results in a geospatial format (e.g. GeoJSON) so I can 
> programatically update the data.
>
> As far as I know, there is a library called > overpy>  that should be what I 
> am looking for. After reading > its documentation 
> >  I came up 
> with the following code:
>
> import>  overpyAPI > =>  overpy> .> Overpass> ()> # Fetch highways within 
> Granollers' city.> result > =>  API> .> query> (> """
> area[name="Granollers"][admin_level=8];// query part for: “highway=*”
> (way["highway"](area);relation["highway"](area););// print 
> resultsout body;"""> )
>
> The thing is that I am not familiar at all with Python and I don't know how 
> to store > result>  as a GeoJSON file (Honestly, I don't even know what kind 
> of thing > result>  is -I tried with > type(result)>  and I get > 
> overpy.Result>  as an output, which doesn't mean much to my poor knowledge). 
> I have been reading > overpy>  documentation but I haven't been able to 
> figure it out.
>
> Can anyone give me a clue with this?
>
Are you familiar with http://overpass-turbo.eu/  
https://wiki.openstreetmap.org/wiki/Overpass_turbo 
 ?

There are two parts here

(1) using overpass itself
(2) writing python script

That are separate (you can call Overpass API from any program, not just python)

"I have just started to use Python" - note that it means learning two separate 
languages at once:

(1) Python itself
(2) Overpass query syntax

PS In case that Overpass is new for you my page may be of some use:

https://mapsaregreat.com/geographic-data-mining-and-visualisation-for-beginners/overpass-turbo-tutorial.html
___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] weeklyOSM #450 2019-02-26-2019-03-04

2019-03-11 Thread Martin Koppenhoefer
You write: "Issues with attributing OSM when using our data are nearly as
old as our project. Richard Fairhurst addresses

the issue of non-compliant attributions in a comprehensive post on the
mailing list. Based on the responses it appears that the issue is not that
important for other mappers or they are resigned to current practices."

How did you come to this conclusion? I counted 3 people not so interested
in attribution or OK with current state of things and 16 agreeing either
explicitly or implicitly with Richard's assessment that there is a problem.

Cheers,
Martin
___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] How to save Overpass query results to a GeoJSON file with Python?

2019-03-11 Thread Carlos Cámara Menoyo via talk
Thanks for your reply, Mateusz.

I know (and use) Overpass turbo. However, what I want to do is to store a query 
and execute it in order to update results and store them as a file for further 
manipulation, so I can easily update results without the need to accessing to 
the interface, generate the query, run it and then download the results. I 
would like to achieve same functionallity but just by executing a file (which, 
additionally, may have more than one query).

So far, I found [overpy](https://github.com/DinoTools/python-overpy), which 
seems to work fine in terms of querying but has two problems for me:

- It seems to be unmaintained (last commit dates from April 2017)
- I didn't succeed in storing the result into a geospatial file (or a geopandas 
data frame) (visit this jupyter lab with my current achievements: 
https://github.com/ccamara/osm-python/blob/master/overpy-demo.ipynb)

I also have just found [Overpass API 
wrapper](https://github.com/mvexel/overpass-api-python-wrapper), but I still 
have to explore it and understand how does it work and how can I tame it to my 
needs.

You propose a third way, which is using overpass and writing a script. It is 
not clear to me what do you mean with that, since I thought that that was 
precisely what I was attempting. Could you be more specific, please? Do you 
have other insight?

Regards,
Carlos

Carlos Cámara-Menoyo
https://carloscamara.es

‐‐‐ Original Message ‐‐‐
On Monday 11 March de 2019 a les 14:15, Mateusz Konieczny 
 wrote:

> Mar 11, 2019, 11:18 AM by talk@openstreetmap.org:
>
>> Dear colleagues,
>>
>> I have just started to use Python and I would like to make a query to 
>> Overpass and store the results in a geospatial format (e.g. GeoJSON) so I 
>> can programatically update the data.
>>
>> As far as I know, there is a library called overpy that should be what I am 
>> looking for. After reading [its 
>> documentation](https://python-overpy.readthedocs.io/en/latest/example.html) 
>> I came up with the following code:
>>
>> import
>>
>> overpy
>>
>> API
>>
>> =
>>
>> overpy
>>
>> .
>>
>> Overpass
>>
>> ()
>>
>> # Fetch highways within Granollers' city.
>>
>> result
>>
>> =
>>
>> API
>>
>> .
>>
>> query
>>
>> (
>>
>> """
>> area[name="Granollers"][admin_level=8];
>> // query part for: “highway=*”
>> (way["highway"](area);
>> relation["highway"](area);
>> );
>> // print results
>> out body;
>> """
>>
>> )
>>
>> The thing is that I am not familiar at all with Python and I don't know how 
>> to store result as a GeoJSON file (Honestly, I don't even know what kind of 
>> thing result is -I tried with type(result) and I get overpy.Result as an 
>> output, which doesn't mean much to my poor knowledge). I have been reading 
>> overpy documentation but I haven't been able to figure it out.
>>
>> Can anyone give me a clue with this?
>
> Are you familiar with http://overpass-turbo.eu/ 
> https://wiki.openstreetmap.org/wiki/Overpass_turbo ?
>
> There are two parts here
>
> (1) using overpass itself
> (2) writing python script
>
> That are separate (you can call Overpass API from any program, not just 
> python)
>
> "I have just started to use Python" - note that it means learning two 
> separate languages at once:
>
> (1) Python itself
> (2) Overpass query syntax
>
> PS In case that Overpass is new for you my page may be of some use:
>
> https://mapsaregreat.com/geographic-data-mining-and-visualisation-for-beginners/overpass-turbo-tutorial.html___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] How to save Overpass query results to a GeoJSON file with Python?

2019-03-11 Thread Bryce Jasmer
I use the overpass library (I think it's the one you mentioned). The
resulting dictionary can be coerced to a string and written out and it
should be valid geojson.

#!/usr/bin/python3
import overpass
api = overpass.API()
result = 
api.get('area[name="Granollers"][admin_level=8];(nwr["highway"](area);relation["highway"](area););')
with open('results.geojson', 'w') as fd:
fd.write(str(result))


On Mon, Mar 11, 2019 at 8:04 AM Carlos Cámara Menoyo via talk <
talk@openstreetmap.org> wrote:

> Thanks for your reply, Mateusz.
>
> I know (and use) Overpass turbo. However, what I want to do is to store a
> query and execute it in order to update results and store them as a file
> for further manipulation, so I can easily update results without the need
> to accessing to the interface, generate the query, run it and then download
> the results. I would like to achieve same functionallity but just by
> executing a file (which, additionally, may have more than one query).
>
> So far, I found overpy ,
> which seems to work fine in terms of querying but has two problems for me:
>
>1. It seems to be unmaintained (last commit dates from April 2017)
>2. I didn't succeed in storing the result into a geospatial file (or a
>geopandas data frame) (visit this jupyter lab with my current achievements:
>https://github.com/ccamara/osm-python/blob/master/overpy-demo.ipynb)
>
> I also have just found Overpass API wrapper
> , but I still have
> to explore it and understand how does it work and how can I tame it to my
> needs.
>
> You propose a third way, which is using overpass and writing a script. It
> is not clear to me what do you mean with that, since I thought that that
> was precisely what I was attempting. Could you be more specific, please? Do
> you have other insight?
>
> Regards,
> Carlos
>
>
> Carlos Cámara-Menoyo
> https://carloscamara.es
>
>
> ‐‐‐ Original Message ‐‐‐
> On Monday 11 March de 2019 a les 14:15, Mateusz Konieczny <
> matkoni...@tutanota.com> wrote:
>
>
>
>
> Mar 11, 2019, 11:18 AM by talk@openstreetmap.org:
>
> Dear colleagues,
>
> I have just started to use Python and I would like to make a query to
> Overpass and store the results in a geospatial format (e.g. GeoJSON) so I
> can programatically update the data.
>
> As far as I know, there is a library called overpy that should be what I
> am looking for. After reading its documentation
>  I came up
> with the following code:
>
> import overpy
>
> API = overpy.Overpass()
> # Fetch highways within Granollers' city.
>
> result = API.query("""
> area[name="Granollers"][admin_level=8];
> // query part for: “highway=*”
> (way["highway"](area);
> relation["highway"](area);
> );
> // print results
> out body;
> """)
>
> The thing is that I am not familiar at all with Python and I don't know
> how to store result as a GeoJSON file (Honestly, I don't even know what
> kind of thing result is -I tried with type(result) and I get overpy.Result
> as an output, which doesn't mean much to my poor knowledge). I have been
> reading overpy documentation but I haven't been able to figure it out.
> Can anyone give me a clue with this?
>
> Are you familiar with http://overpass-turbo.eu/
> https://wiki.openstreetmap.org/wiki/Overpass_turbo ?
>
> There are two parts here
>
> (1) using overpass itself
> (2) writing python script
>
> That are separate (you can call Overpass API from any program, not just
> python)
>
> "I have just started to use Python" - note that it means learning two
> separate languages at once:
>
> (1) Python itself
> (2) Overpass query syntax
>
> PS In case that Overpass is new for you my page may be of some use:
>
>
> https://mapsaregreat.com/geographic-data-mining-and-visualisation-for-beginners/overpass-turbo-tutorial.html
>
>
> ___
> talk mailing list
> talk@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/talk
>
___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] How to save Overpass query results to a GeoJSON file with Python?

2019-03-11 Thread Mateusz Konieczny



Mar 11, 2019, 4:04 PM by ccam...@pm.me:

> Thanks for your reply, Mateusz.
>
> I know (and use) Overpass turbo. However, what I want to do is to store a 
> query and execute it in order to update results and store them as a file for 
> further manipulation
>
OK, in that case you probably don;t need materials that I linked

> So far, I found > overpy > , 
> which seems to work fine in terms of querying but has two problems for me: 
> It seems to be unmaintained (last commit dates from April 2017)
>
Unfortunately there is no really good library for Overpass access - I was 
looking for one
some time ago and found nothing that would work well (maintained, support for 
queries longer than URL limit, support for filesystem caching).


> You propose a third way, which is using overpass and writing a script. It is 
> not clear to me what do you mean with that, since I thought that that was 
> precisely what I was attempting. 
>
Yes - I was not proposing any new way.

___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] How to save Overpass query results to a GeoJSON file with Python?

2019-03-11 Thread Dave F via talk

Unsure, but would OSMtoGeojson be of use?
https://github.com/tyrasd/osmtogeojson

DaveF

On 11/03/2019 10:18, Carlos Cámara Menoyo via talk wrote:

Dear colleagues,

I have just started to use Python and I would like to make a query to Overpass 
and store the results in a geospatial format (e.g. GeoJSON) so I can 
programatically update the data.

As far as I know, there is a library called overpy that should be what I am 
looking for. After reading [its 
documentation](https://python-overpy.readthedocs.io/en/latest/example.html) I 
came up with the following code:

import

overpy

API

=

overpy

.

Overpass

()

# Fetch highways within Granollers' city.

result

=

API

.

query

(

"""
 area[name="Granollers"][admin_level=8];
 // query part for: “highway=*”
 (way["highway"](area);
 relation["highway"](area);
 );
 // print results
 out body;
 """

)

The thing is that I am not familiar at all with Python and I don't know how to 
store result as a GeoJSON file (Honestly, I don't even know what kind of thing 
result is -I tried with type(result) and I get overpy.Result as an output, 
which doesn't mean much to my poor knowledge). I have been reading overpy 
documentation but I haven't been able to figure it out.

Can anyone give me a clue with this?

Carlos Cámara-Menoyo
https://carloscamara.es


___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] How to save Overpass query results to a GeoJSON file with Python?

2019-03-11 Thread Carlos Cámara Menoyo via talk
Thank you for the clarification, Matheus and for the link, Dave (I am afraid 
that's not what I was looking for, as it still requires to download data on osm 
format).

I tried Bryce's code, which uses overpass api python wrapper 
(https://github.com/mvexel/overpass-api-python-wrapper), and it just works fine!

Unfortunately, I have to admit that I don't wholly understand it (I have just 
landed in Python's world). Would you be so kind to explain the following?:

- Can I add the query in more than a single line? (the provided one is quite 
simple and still it is long) If so, how? (from what I am seeing Python is very 
strict dealing with new lines)
- what's going on after the result? I understand there's where the magic of 
creating a gjson file happens, but can't understand much about it.

Regards and thank you again to everyone!

Carlos Cámara-Menoyo
https://carloscamara.es

‐‐‐ Original Message ‐‐‐
On Monday 11 March de 2019 a les 18:34, Dave F via talk 
 wrote:

> Unsure, but would OSMtoGeojson be of use?
> https://github.com/tyrasd/osmtogeojson
>
> DaveF
>
> On 11/03/2019 10:18, Carlos Cámara Menoyo via talk wrote:
>
>> Dear colleagues,
>>
>> I have just started to use Python and I would like to make a query to 
>> Overpass and store the results in a geospatial format (e.g. GeoJSON) so I 
>> can programatically update the data.
>>
>> As far as I know, there is a library called overpy that should be what I am 
>> looking for. After reading [its documentation](
>> https://python-overpy.readthedocs.io/en/latest/example.html
>> ) I came up with the following code:
>>
>> import
>>
>> overpy
>>
>> API
>>
>> =
>>
>> overpy
>>
>> .
>>
>> Overpass
>>
>> ()
>>
>> # Fetch highways within Granollers' city.
>>
>> result
>>
>> =
>>
>> API
>>
>> .
>>
>> query
>>
>> (
>>
>> """
>> area[name="Granollers"][admin_level=8];
>> // query part for: “highway=*”
>> (way["highway"](area);
>> relation["highway"](area);
>> );
>> // print results
>> out body;
>> """
>>
>> )
>>
>> The thing is that I am not familiar at all with Python and I don't know how 
>> to store result as a GeoJSON file (Honestly, I don't even know what kind of 
>> thing result is -I tried with type(result) and I get overpy.Result as an 
>> output, which doesn't mean much to my poor knowledge). I have been reading 
>> overpy documentation but I haven't been able to figure it out.
>>
>> Can anyone give me a clue with this?
>>
>> Carlos Cámara-Menoyo
>> https://carloscamara.es
>>
>> ___
>> talk mailing list
>> talk@openstreetmap.org
>>
>> https://lists.openstreetmap.org/listinfo/talk___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] How to save Overpass query results to a GeoJSON file with Python?

2019-03-11 Thread Mateusz Konieczny



Mar 11, 2019, 6:54 PM by talk@openstreetmap.org:

> Can I add the query in more than a single line? (the provided one is quite 
> simple and still it is long) If so, how? (from what I am seeing Python is 
> very strict  dealing with new lines)
>
This is not the best place for Python-specific questions.

Fortunately for beginners most simple questions are already asked and answered.

In this case important key words are
- multiline
- string
- Python

Searching for it, see for example
https://duckduckgo.com/?q=multiline+string+Python&t=canonical&ia=web 

will find among other answers for example
https://stackoverflow.com/questions/10660435/pythonic-way-to-create-a-long-multi-line-string
 

with answer
https://stackoverflow.com/a/10660443/4130619
___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] How to save Overpass query results to a GeoJSON file with Python?

2019-03-11 Thread Martijn van Exel
Carlos — I am the maintainer of that library Bryce provided the sample code 
for. I am happy to answer any specific questions about it. However, I’d advise 
you take some time to study python first. Without a basic understanding of the 
language you are programming in, you are unlikely to be successful at solving 
problems using that language. There are many excellent, free python learning 
resources available.

Martijn

> On Mar 11, 2019, at 11:54 AM, Carlos Cámara Menoyo via talk 
>  wrote:
> 
> Thank you for the clarification, Matheus and for the link, Dave (I am afraid 
> that's not what I was looking for, as it still requires to download data on 
> osm format).
> 
> I tried Bryce's code, which uses overpass api python wrapper 
> (https://github.com/mvexel/overpass-api-python-wrapper 
> ), and it just works 
> fine! 
> 
> Unfortunately, I have to admit that I don't wholly understand it (I have just 
> landed in Python's world). Would you be so kind to explain the following?:
> Can I add the query in more than a single line? (the provided one is quite 
> simple and still it is long) If so, how? (from what I am seeing Python is 
> very strict dealing with new lines)
> what's going on after the result? I understand there's where the magic of 
> creating a gjson file happens, but can't understand much about it.
> Regards and thank you again to everyone!
> 
> Carlos Cámara-Menoyo
> https://carloscamara.es 
> 
> 
> ‐‐‐ Original Message ‐‐‐
> On Monday 11 March de 2019 a les 18:34, Dave F via talk 
>  wrote:
> 
>> Unsure, but would OSMtoGeojson be of use?
>> https://github.com/tyrasd/osmtogeojson 
>> 
>> 
>> DaveF
>> 
>> 
>> On 11/03/2019 10:18, Carlos Cámara Menoyo via talk wrote:
>>> Dear colleagues,
>>> 
>>> I have just started to use Python and I would like to make a query to 
>>> Overpass and store the results in a geospatial format (e.g. GeoJSON) so I 
>>> can programatically update the data.
>>> 
>>> As far as I know, there is a library called overpy that should be what I am 
>>> looking for. After reading [its 
>>> documentation](https://python-overpy.readthedocs.io/en/latest/example.html 
>>> ) I came up 
>>> with the following code:
>>> 
>>> import
>>> 
>>> overpy
>>> 
>>> API
>>> 
>>> =
>>> 
>>> overpy
>>> 
>>> .
>>> 
>>> Overpass
>>> 
>>> ()
>>> 
>>> # Fetch highways within Granollers' city.
>>> 
>>> result
>>> 
>>> =
>>> 
>>> API
>>> 
>>> .
>>> 
>>> query
>>> 
>>> (
>>> 
>>> """
>>> area[name="Granollers"][admin_level=8];
>>> // query part for: “highway=*”
>>> (way["highway"](area);
>>> relation["highway"](area);
>>> );
>>> // print results
>>> out body;
>>> """
>>> 
>>> )
>>> 
>>> The thing is that I am not familiar at all with Python and I don't know how 
>>> to store result as a GeoJSON file (Honestly, I don't even know what kind of 
>>> thing result is -I tried with type(result) and I get overpy.Result as an 
>>> output, which doesn't mean much to my poor knowledge). I have been reading 
>>> overpy documentation but I haven't been able to figure it out.
>>> 
>>> Can anyone give me a clue with this?
>>> 
>>> Carlos Cámara-Menoyo
>>> https://carloscamara.es 
>>> 
>>> 
>>> ___
>>> talk mailing list
>>> talk@openstreetmap.org 
>>> https://lists.openstreetmap.org/listinfo/talk 
>>> 
>>> 
> 
> ___
> talk mailing list
> talk@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/talk

___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] How to save Overpass query results to a GeoJSON file with Python?

2019-03-11 Thread Dave F via talk



On 11/03/2019 17:54, Carlos Cámara Menoyo wrote:

Thank you for the clarification, Matheus and for the link, Dave (I am afraid 
that's not what I was looking for, as it still requires to download data on osm 
format).


You can run the api from a command line or script (such as python).

Paste this into your browser & look at the file it downloads:

http://overpass-api.de/api/interpreter?data=area[name="Granollers"][admin_level=8];(way["highway"](area);relation["highway"](area););out 
body;


This can be loaded from within python (urllib?)



___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] How to save Overpass query results to a GeoJSON file with Python?

2019-03-11 Thread Dave F via talk

Maybe adapt this answer:

https://gis.stackexchange.com/questions/115733/converting-json-to-geojson-or-csv/115736#115736



On 11/03/2019 20:00, Dave F via talk wrote:



On 11/03/2019 17:54, Carlos Cámara Menoyo wrote:
Thank you for the clarification, Matheus and for the link, Dave (I am 
afraid that's not what I was looking for, as it still requires to 
download data on osm format).


You can run the api from a command line or script (such as python).

Paste this into your browser & look at the file it downloads:

http://overpass-api.de/api/interpreter?data=area[name="Granollers"][admin_level=8];(way["highway"](area);relation["highway"](area););out 
body;


This can be loaded from within python (urllib?)



___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk



___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] weeklyOSM #450 2019-02-26-2019-03-04

2019-03-11 Thread Joseph Eisenberg
I didn’t add my opinion because it seemed clear that most people thought
that non-attribution is a problem.

Let the record show that I also strongly support requiring attribution, so
that more people will become aware of OSM and perhaps start to improve the
data in their area.

-Joseph Eisenberg

On Mon, Mar 11, 2019 at 11:59 PM Martin Koppenhoefer 
wrote:

> You write: "Issues with attributing OSM when using our data are nearly as
> old as our project. Richard Fairhurst addresses
> 
> the issue of non-compliant attributions in a comprehensive post on the
> mailing list. Based on the responses it appears that the issue is not that
> important for other mappers or they are resigned to current practices."
>
> How did you come to this conclusion? I counted 3 people not so interested
> in attribution or OK with current state of things and 16 agreeing either
> explicitly or implicitly with Richard's assessment that there is a problem.
>
> Cheers,
> Martin
> ___
> talk mailing list
> talk@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/talk
>
___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] How to save Overpass query results to a GeoJSON file with Python?

2019-03-11 Thread Carlos Cámara Menoyo via talk
Thank you everyone for your help.

With Bryce's example + Martijn Library (thanks for developing it!) + some 
further research I am sure I will be able to achieve what I was looking for!

Best,


Carlos Cámara-Menoyo
https://carloscamara.es

‐‐‐ Original Message ‐‐‐
On Monday 11 March de 2019 a les 21:45, Dave F  
wrote:

> Maybe adapt this answer:
>
> https://gis.stackexchange.com/questions/115733/converting-json-to-geojson-or-csv/115736#115736
>
> On 11/03/2019 20:00, Dave F via talk wrote:
>
> > On 11/03/2019 17:54, Carlos Cámara Menoyo wrote:
> >
> > > Thank you for the clarification, Matheus and for the link, Dave (I am
> > > afraid that's not what I was looking for, as it still requires to
> > > download data on osm format).
> >
> > You can run the api from a command line or script (such as python).
> > Paste this into your browser & look at the file it downloads:
> > http://overpass-api.de/api/interpreter?data=area[name="Granollers"][admin_level=8];(way"highway";relation"highway";);out
> > body;
> > This can be loaded from within python (urllib?)
> >
> > talk mailing list
> > talk@openstreetmap.org
> > https://lists.openstreetmap.org/listinfo/talk



___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


[OSM-talk] trash racks in front or after waterway=culvert

2019-03-11 Thread MonkZ
Hiho,

I'm seeking for a proper tag for installations (trash racks / screens)
like this:
> http://www.bonn.de/imperia/md/images/umwelt-gesund-planen-bauen-wohn/plan-bau-wohn/tiefbauamt/endenicher_bach_2014_01_w.jpg
> http://www.halcyon-solutions.co.uk/RFWT/se2641.jpg
> https://awmawater-wpengine.netdna-ssl.com/wp-content/uploads/2017/11/automated_trash_rack_debris_drawing_awma.jpg


Basically a structure immersed the water, to collect trash, keep
culverts from jamming and (sometimes) people from getting sucked into
the culvert.

These installations have certain properties like barriers, so I would
classify them as barrier=trash_rack (but there are only two instances of
it (source: taginfo) - so I wouldn't say it is defined by usage).

There are also different forms of this kind of barrier.
alignment- slanted or not or ...;
material- metal or net or ...;
have they mechanical components for automated cleaning...
Are doors present...

Alternatives? Suggestions? Suggestions for compositions?

MfG
MonkZ

___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] trash racks in front or after waterway=culvert

2019-03-11 Thread Warin

On 12/03/19 11:25, MonkZ wrote:


Hiho,

I'm seeking for a proper tag


Best list for this is tagg...@openstreetmap.org


for installations (trash racks / screens)
like this:

http://www.bonn.de/imperia/md/images/umwelt-gesund-planen-bauen-wohn/plan-bau-wohn/tiefbauamt/endenicher_bach_2014_01_w.jpg
http://www.halcyon-solutions.co.uk/RFWT/se2641.jpg
https://awmawater-wpengine.netdna-ssl.com/wp-content/uploads/2017/11/automated_trash_rack_debris_drawing_awma.jpg


Basically a structure immersed the water,


Immersed in water in your area of the world. Here they are frequently dry ... 
only having water in storms.


  to collect trash, keep
culverts from jamming and (sometimes) people from getting sucked into
the culvert.

These installations have certain properties like barriers, so I would
classify them as barrier=trash_rack (but there are only two instances of
it (source: taginfo) - so I wouldn't say it is defined by usage).


They need to be nodes on a waterway or ways across a waterway.

They are also man made .. so could be tagged man_made=something ... screen?
Screen=* is inuse for the number of viewing screens in cinemas. Should not 
cause confusion?



There are also different forms of this kind of barrier.
alignment- slanted or not or ...;



material- metal or net or ...;


Some ideas here ..
https://wiki.openstreetmap.org/wiki/Proposed_features/Fence_attributes

I would separate out the material (usually metal) from the structure (chain 
link, bar, mesh, etc)


have they mechanical components for automated cleaning...


Lets concentrate on one bit at a time?


Are doors present...

Alternatives? Suggestions? Suggestions for compositions?

MfG
MonkZ



___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] trash racks in front or after waterway=culvert

2019-03-11 Thread Pierre Béland via talk
In Canada and probably elsewhere,  such structures are also used to control the 
flow of water in culverts and avoid beavers to obstruct the culvert with dams, 
flooding, eroding the roads or various other structures in the area.See   
http://www.nature-track.com/Living_With_Beavers.html 

But I would difficult to make the inventory of such structures in forestry 
areas. 
 
Pierre 

___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


[OSM-talk] Tagging disputed boundaries

2019-03-11 Thread Nathaniel V. Kelso
Hi fellow mapping enthusiasts,

Just a friendly heads up I've started to tag more disputed administrative
boundary lines in OpenStreetMap with tags for disputed=yes (but will leave
the existing dispute=yes alone), adding disputed_by=* on disputed ways, and
adding claimed_by=* on their relations to support multiple points-of-view.

I posted a diary entry about this sprint here:
https://www.openstreetmap.org/user/nvk/diary/47890

So far I've limited editing to existing features (like in Kashmir, Crimea,
Western Sahara), but there actually aren't that may so I may start adding
missing ones later this month.

If you have any questions please let me know, and if you want to help out
let's coordinate :)

Cheers,

_Nathaniel
___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk