[mkgmap-dev] Nearby POIs
From Mike Baggaley mike at tvage.co.uk on Sun Jun 7 19:35:22 BST 2020
Hi Gerd, stepping through the code in the debugger, I can see that the problem seems to be that the wrong angle fixer moves one of the points to an alternative representation that is identical in position, but is no longer the same coordinate. Thus it successfully adds it to the list of different points, but when it deletes it as a nearby POI, it calculates the distance from the best point to be zero. Latitude 2473177 delta 6 for both Longitude -98347 delta 29 for one, -98348 delta -35 for the other. Cheers, Mike -----Original Message----- From: Gerd Petermann [mailto:gpetermann_muenchen at hotmail.com] Sent: 07 June 2020 07:49 To: 'Development list for mkgmap' <mkgmap-dev at lists.mkgmap.org.uk> Subject: Re: [mkgmap-dev] Nearby POIs Hi Mike, I cannot reproduce the problem. I've downloaded the area around the node given in the message and used --nearby-poi-rules=0x3200:10 with the default style. I see these (expected) messages INFO: uk.me.parabola.mkgmap.osmstyle.NearbyPoiHandler f:\osm\nearby-dup.osm: Removed duplicate POI with type 0x3200 "stile" for element http://www.openstreetmap.org/node/7375220120 at http://www.openstreetmap.org/?mlat=53.068619&mlon=-2.110307&zoom=17 INFO: uk.me.parabola.mkgmap.osmstyle.NearbyPoiHandler f:\osm\nearby-dup.osm: Removed duplicate POI with type 0x3200 "stile" for element http://www.openstreetmap.org/node/4073250219 at http://www.openstreetmap.org/?mlat=53.068589&mlon=-2.110224&zoom=17 INFO: uk.me.parabola.mkgmap.osmstyle.NearbyPoiHandler f:\osm\nearby-dup.osm: Removed duplicate POI with type 0x3200 "stile" for element http://www.openstreetmap.org/node/4073236380 at http://www.openstreetmap.org/?mlat=53.068481&mlon=-2.109169&zoom=17 My test data is here: http://files.mkgmap.org.uk/download/479/nearby-dup.osm Maybe it depends on the given radius. I tried different values but I never got your message. Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Mike Baggaley <mike at tvage.co.uk> Gesendet: Samstag, 6. Juni 2020 01:32 An: 'Development list for mkgmap' Betreff: [mkgmap-dev] Nearby POIs Just a small note about the distance calculation - I get the following message which suggests the message is slightly incorrect: Removed nearby (<0 m) POI with type 0x013009 "" for element http://www.openstreetmap.org/node/4073250218 at http://www.openstreetmap.org/?mlat=53.068619&mlon=-2.110307&zoom=17 Cheers, Mike _______________________________________________ mkgmap-dev mailing list mkgmap-dev at lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
- Previous message: [mkgmap-dev] Nearby POIs
- Next message: [mkgmap-dev] Nearby POIs
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list