goat-community / goat

This is the home of Geo Open Accessibility Tool (GOAT)
GNU General Public License v3.0
89 stars 47 forks source link

Kindergartens are shown twice #698

Closed UJehle closed 3 years ago

UJehle commented 3 years ago

Some Kindergartens are displayed with 2 icons in GOAT. I guess this happens when the area and the building are tagged as "amenity=kindergarten".

kindergarten

some examples: Kindergarten St. Jakob, Freising Haus des Kindes, Freising

UJehle commented 3 years ago

one more example: Familienzentrum der Lebenshilfe im Steinpark, Asamstr. 19, 85356 Freising (here, there is only one polygone (kindergarten area) and one point)

EPajares commented 3 years ago

@rafleo2008

rafleo2008 commented 3 years ago

Fixed!, The problem will appear solved in the next commit

UJehle commented 3 years ago

Awesome, thanks!

UJehle commented 3 years ago

I just found some issues where we still have two POI icons for the same amenity: https://www.openstreetmap.org/#map=18/48.12071/11.54938 grafik

https://www.openstreetmap.org/query?lat=48.16438&lon=11.55384 grafik

Is this just a problem of my local version or do you also have these duplicates @rafleo2008 ?

UJehle commented 3 years ago

One more: https://www.openstreetmap.org/edit?editor=id&way=184872241#map=20/48.09265/11.65073 grafik

rafleo2008 commented 3 years ago

Hello Ulrike,

Many thanks for this checking. Effectively, this is a global issue; we have not implemented any routine to clean duplicated POIS in primary_schools and secondary_schools before, but now, I have implemented a new function for check specific amenities called "clean_duplicated_amenities_in_pois", this will be applied in the main code to clean duplicated values in primary and secondary schools with a lookup radius of 40m.

With this change, I found 5 duplicated primary schools and 9 secondary schools that have been cleaned.

In the case of kindergartens, the problem was the lower value of the lookup radius "duplicated_kindergarten_lookup_radius", the variable was defined in 40 meters, but the kindergartens in the example were located at 49m, therefore, I have increased the variable to 50m to cover this case.

These changes will be available in the next PR.

EPajares commented 3 years ago

Sounds great! Thanks @rafleo2008. There is a smaller issue when using the pois_rewrite function in the automated setup. The issue is that the function is using the buildings table but at this stage in the data preparation the table is not existing. I uncommented it for now see here: https://github.com/goat-community/goat/commit/dabf2441e7bd87df4240f2d9b168030273133519

But I would like to finish this soon. So maybe let's discuss possible strategies to mitigate the issue. I think the best would be that the function is not snapping the points to the buildings.

rafleo2008 commented 3 years ago

You took my word, I'm doing the tests and just found that issue. I will disable the snapping in the function for now and we can discuss the possible solution this week.

EPajares commented 3 years ago

Ok great! Thanks

EPajares commented 3 years ago

I will close this issue now as it seems to be fixed at least for Munich. But with the help of the functions and setting the right radius this can be adjusted also to other cases.