logo separator

[mkgmap-dev] Admin relations

From Gerd Petermann gpetermann_muenchen at hotmail.com on Sat Jul 14 07:49:09 BST 2018

Hi all,

the problem with e.g. Way 41230883 in Hennings real input data is this:
The LocationHook is used for all ways in the input file and the ways are not yet trimmed to the bounding box.
Now, with Hennings input file, the n/2-th point lies outside of the bbox, this node is ignored and mkgmap tries the first node (0) as next alternative. This node lies on the boundary between CHN and MNG, the returned result is more or less unpredictable.

I am not yet sure how to handle this. Working on it.

Gerd


Gerd


________________________________________
Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Henning Scholland <osm at hscholland.de>
Gesendet: Freitag, 13. Juli 2018 16:21
An: mkgmap-dev at lists.mkgmap.org.uk
Betreff: Re: [mkgmap-dev] Admin relations

Hi Gerd,
thanks for the fix, for the issue on Chinese side of the border it works
fine.

Henning

On 13.07.2018 13:19, Gerd Petermann wrote:
> Hi,
>
> I've implemented the small change for two node ways in r4195. As expected it fixes the problem for the way in China.
> In my previous post I forgot to add "in Mongolia" after "the two admin_level 4 ways.".
>
> Gerd
>
> ________________________________________
> Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Gerd Petermann <gpetermann_muenchen at hotmail.com>
> Gesendet: Freitag, 13. Juli 2018 06:50
> An: Henning Scholland; Development list for mkgmap
> Betreff: Re: [mkgmap-dev] Admin relations
>
> Hi Henning,
>
> cannot find a problem in source.osm. I've tried with an old bounds.zip and with the current one from http://osm2.pleiades.uni-wuppertal.de/bounds/latest/bounds.zip
> With both the LocationHook sets mkgmap:admin_level2=MNG for the two admin_level 4 ways.
>
> Gerd
>
> ________________________________________
> Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Gerd Petermann <gpetermann_muenchen at hotmail.com>
> Gesendet: Donnerstag, 12. Juli 2018 19:16
> An: Henning Scholland; Development list for mkgmap
> Betreff: Re: [mkgmap-dev] Admin relations
>
> Hi Henning, for a way with 2 nodes n/2 gives 1, and the nodes are numbered starting with 0, so the n/2 node is the last, not the first. The last is in the north.
>
> Maybe it would be better to calculate the position of the middle for a way with just 2 nodes, at least this would solve this problem and it should not produce new problems.
>
> I'll check your sample file tomorrow.
>
> Gerd
>
> ________________________________________
> Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Henning Scholland <osm at hscholland.de>
> Gesendet: Donnerstag, 12. Juli 2018 17:30
> An: mkgmap-dev at lists.mkgmap.org.uk
> Betreff: Re: [mkgmap-dev] Admin relations
>
> Hi Gerd,
>
> while checking the process with echotags function, I can confirm the
> mkgmap:country tag is set wrong, but set.
>
> Henning
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
>
>

_______________________________________________
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


More information about the mkgmap-dev mailing list