Re: [OSM-talk] MapRoulette questionnaire

2017-08-14 Thread Martijn van Exel
Hi all, SOTM is coming up and I will be doing a talk on MapRoulette there. I will incorporate the results of my questionnaire from earlier this year and announce the mappy prize winner there too. If they are in the audience they will be able to receive their prize right then and there, otherwi

Re: [OSM-talk] OSM Wikidata SPARQL service updated

2017-08-14 Thread Sarah Hoffmann
On Mon, Aug 14, 2017 at 11:10:39AM -0400, Yuri Astrakhan wrote: > mmd, the centroids are calculated with this code, let me know if there is a > better way, I wasn't aware of any issues with the minute data updates. > wkb = wkbfab.create_linestring(obj) > point = loads(wkb, hex=True).rep

Re: [OSM-talk] OSM Wikidata SPARQL service updated

2017-08-14 Thread Yuri Astrakhan
For relations, I simply add "members" in addition to "tags". The members are stored as 3 different predicates: "osmm:has", "osmm:has:_", and "osm:has:..." (where the ... represents any "valid" label - same rules as for the tag key). The object (value) of the statement is a link to another OSM ob

Re: [OSM-talk] OSM Wikidata SPARQL service updated

2017-08-14 Thread François Lacombe
Hi 2017-08-14 11:18 GMT+02:00 mmd : > Hi, > > Am 13.08.2017 um 19:49 schrieb Yuri Astrakhan: > > > * all ways now store "osmm:loc" with centroid coordinates, making it > > possible to crudely filter ways by location > > out of curiosity, can you say a few words on how your overall approach > to c

Re: [OSM-talk] OSM Wikidata SPARQL service updated

2017-08-14 Thread Yuri Astrakhan
mmd, the centroids are calculated with this code, let me know if there is a better way, I wasn't aware of any issues with the minute data updates. wkb = wkbfab.create_linestring(obj) point = loads(wkb, hex=True).representative_point() https://github.com/nyurik/osm2rdf/blob/master/osm2rd

Re: [OSM-talk] OSM Wikidata SPARQL service updated

2017-08-14 Thread mmd
Hi, Am 13.08.2017 um 19:49 schrieb Yuri Astrakhan: > * all ways now store "osmm:loc" with centroid coordinates, making it > possible to crudely filter ways by location out of curiosity, can you say a few words on how your overall approach to calculate centroids for ways? As we all know it's an e