[mkgmap-dev] nearby-POI: What to do with several POI arranged on a circle?
From Mike Baggaley mike at tvage.co.uk on Thu May 7 16:09:55 BST 2020
Hi Gerd, finally managed to try your updated code and it looks like a great improvement over my starting point, which whilst it did work in some places, in others it seemed to have no effect. The barrage of extra deletions also pointed me to a problem in my points file which was creating a POI to display the name of power generators without any icon. Originally this just showed big generators, but as there are now lots of solar panels on people's houses mapped it has been adding thousands of POIS with no icon and no name, which wasn't a great deal of use! Regarding the multiple POI case, it really depends on what type of POI it is. The logs pointed me to a tourist destination where every holiday home had been tagged as a hotel - for that one I would ideally want just a single point left, and preferably the severity of the message increased, so that it is easy to pick out and go and fix at source. For ones like a line of park benches, I'd be perfectly happy with them only being considered in pairs (just thinning the POIs so that you can still see there are plenty of seats). Regards, Mike -----Original Message----- From: Gerd Petermann [mailto:gpetermann_muenchen at hotmail.com] Sent: 07 May 2020 15:04 To: mkgmap-dev at lists.mkgmap.org.uk Subject: Re: [mkgmap-dev] nearby-POI: What to do with several POI arranged on a circle? Hi Randolph, I try to find out what the result should be when more than two POI are involved. They may be arranged in a straight line or in a circle or whatever random order. At the moment I tend to follow Tickers suggestion and remove the option to keep it simple. Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Randolph J. Herber <army.bronze.star at gmail.com> Gesendet: Donnerstag, 7. Mai 2020 15:21 An: mkgmap-dev at lists.mkgmap.org.uk Betreff: Re: [mkgmap-dev] nearby-POI: What to do with several POI arranged on a circle? Perhaps averaging the latitude and longitude coordinates of all the points separately would work. That is not quite the same as meet in the middle. If the points are evenly spaced around the edge of a circle, even though the latitude and longitude scalings (except at the equator) are not the same. What I believe you are trying to do is minimize the total distance from the selected point to the collection of points. Randolph J. Herber On 5/7/2020 2:42 AM, Gerd Petermann wrote: Hi all, while doing further tests I've found this edge case (see attached file) Draw a circle with a diameter of ~56m and tag all nodes amenity=bank. The default style has amenity=bank [0x2f06 resolution 24] With --nearby-poi-rules=0x2f06:30:merge-at-mid-point one might expect a single POI in the middle of the circle, but the result is different: Since there is no POI near the center of the circle the current algo finds 4 groups, all close to the edge of the circle. I think for merge-at-mid-point I need a different algo. I'm looking at https://en.wikipedia.org/wiki/Cluster_analysis now. Gerd _______________________________________________ mkgmap-dev mailing list mkgmap-dev at lists.mkgmap.org.uk<mailto:mkgmap-dev at lists.mkgmap.org.uk> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
- Previous message: [mkgmap-dev] nearby-POI: What to do with several POI arranged on a circle?
- Next message: [mkgmap-dev] nearby-POI: What to do with several POI arranged on a circle?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list