
Hi Ticker, attached are two slightly different patches for Mdr25 which I think make the code more plausible. v2 would be my choice. I've not yet tried to find out (again) how the sort works regarding strength. In my maps I see that Mdr25 contains fewer records than Mdr5 (e.g. 7609 of 8275 or 1146 of 1850), but I have no clue yet how to find out which recrods from Mdr5 are skipped, means, what exactly has to be compared. Gerd

Hi Ticker, just learned (again) that MapInstall fills Mdr25 when it writes a gmapsupp. That should help. Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Gerd Petermann <GPetermann_muenchen@hotmail.com> Gesendet: Freitag, 22. Oktober 2021 10:53 An: mkgmap-dev@lists.mkgmap.org.uk Betreff: [mkgmap-dev] change mdr25 logic Hi Ticker, attached are two slightly different patches for Mdr25 which I think make the code more plausible. v2 would be my choice. I've not yet tried to find out (again) how the sort works regarding strength. In my maps I see that Mdr25 contains fewer records than Mdr5 (e.g. 7609 of 8275 or 1146 of 1850), but I have no clue yet how to find out which recrods from Mdr5 are skipped, means, what exactly has to be compared. Gerd

Hi Ticker, both MapSource and Basecamp allow to install a map on the device or on a USB stick that has a Garmin directory. You select one or more tiles and the programs write a gmapsupp.img with an index for those tiles. Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Ticker Berkin <rwb-mkgmap@jagit.co.uk> Gesendet: Montag, 15. November 2021 19:24 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] change mdr25 logic Hi Gerd How do you make it do this? Ticker On Fri, 2021-10-22 at 09:06 +0000, Gerd Petermann wrote:
Hi Ticker,
just learned (again) that MapInstall fills Mdr25 when it writes a gmapsupp. That should help.
Gerd
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Gerd If the --gmapi map I load isn't build with --index, MapSource map install doesn't create one in the gmapsupp.img. I couldn't see a way of forcing either MapSource or BaseCamp to build an index. If I start with a --gmapi with --index, using BaseCamp/MapInstall, the Mdr section seems to lose Mdr13, Mdr14, Mdr15, Mdr21, Mdr23, Mdr26, Mdr27, Mdr28 and gain Mdr17. The other Mdr sections have the same number of records, but, as expected, different record sizes. Mdr25 hasn't changed. I also get: 00007420.MD2 141492 along with the normal: 00007420.MDR 1166713 Ticker On Mon, 2021-11-15 at 18:55 +0000, Gerd Petermann wrote:
Hi Ticker,
both MapSource and Basecamp allow to install a map on the device or on a USB stick that has a Garmin directory. You select one or more tiles and the programs write a gmapsupp.img with an index for those tiles.
Gerd
________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Ticker Berkin <rwb-mkgmap@jagit.co.uk> Gesendet: Montag, 15. November 2021 19:24 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] change mdr25 logic
Hi Gerd
How do you make it do this?
Ticker
On Fri, 2021-10-22 at 09:06 +0000, Gerd Petermann wrote:
Hi Ticker,
just learned (again) that MapInstall fills Mdr25 when it writes a gmapsupp. That should help.
Gerd
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Ticker, I didn't notice that the Mdr25 is the same. In that case it is really no help. Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Ticker Berkin <rwb-mkgmap@jagit.co.uk> Gesendet: Montag, 15. November 2021 20:17 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] change mdr25 logic Hi Gerd If the --gmapi map I load isn't build with --index, MapSource map install doesn't create one in the gmapsupp.img. I couldn't see a way of forcing either MapSource or BaseCamp to build an index. If I start with a --gmapi with --index, using BaseCamp/MapInstall, the Mdr section seems to lose Mdr13, Mdr14, Mdr15, Mdr21, Mdr23, Mdr26, Mdr27, Mdr28 and gain Mdr17. The other Mdr sections have the same number of records, but, as expected, different record sizes. Mdr25 hasn't changed. I also get: 00007420.MD2 141492 along with the normal: 00007420.MDR 1166713 Ticker On Mon, 2021-11-15 at 18:55 +0000, Gerd Petermann wrote:
Hi Ticker,
both MapSource and Basecamp allow to install a map on the device or on a USB stick that has a Garmin directory. You select one or more tiles and the programs write a gmapsupp.img with an index for those tiles.
Gerd
________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Ticker Berkin <rwb-mkgmap@jagit.co.uk> Gesendet: Montag, 15. November 2021 19:24 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] change mdr25 logic
Hi Gerd
How do you make it do this?
Ticker
On Fri, 2021-10-22 at 09:06 +0000, Gerd Petermann wrote:
Hi Ticker,
just learned (again) that MapInstall fills Mdr25 when it writes a gmapsupp. That should help.
Gerd
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Ticker, I think mdr25 is recalculated. I modified mkgmap to write only one city name for mdr25 and created a gmapsupp with MapSource. The mdr25 in the file contains more entries, so it should be possible to use that for testing. Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Gerd Petermann <gpetermann_muenchen@hotmail.com> Gesendet: Montag, 15. November 2021 20:24 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] change mdr25 logic Hi Ticker, I didn't notice that the Mdr25 is the same. In that case it is really no help. Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Ticker Berkin <rwb-mkgmap@jagit.co.uk> Gesendet: Montag, 15. November 2021 20:17 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] change mdr25 logic Hi Gerd If the --gmapi map I load isn't build with --index, MapSource map install doesn't create one in the gmapsupp.img. I couldn't see a way of forcing either MapSource or BaseCamp to build an index. If I start with a --gmapi with --index, using BaseCamp/MapInstall, the Mdr section seems to lose Mdr13, Mdr14, Mdr15, Mdr21, Mdr23, Mdr26, Mdr27, Mdr28 and gain Mdr17. The other Mdr sections have the same number of records, but, as expected, different record sizes. Mdr25 hasn't changed. I also get: 00007420.MD2 141492 along with the normal: 00007420.MDR 1166713 Ticker On Mon, 2021-11-15 at 18:55 +0000, Gerd Petermann wrote:
Hi Ticker,
both MapSource and Basecamp allow to install a map on the device or on a USB stick that has a Garmin directory. You select one or more tiles and the programs write a gmapsupp.img with an index for those tiles.
Gerd
________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Ticker Berkin <rwb-mkgmap@jagit.co.uk> Gesendet: Montag, 15. November 2021 19:24 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] change mdr25 logic
Hi Gerd
How do you make it do this?
Ticker
On Fri, 2021-10-22 at 09:06 +0000, Gerd Petermann wrote:
Hi Ticker,
just learned (again) that MapInstall fills Mdr25 when it writes a gmapsupp. That should help.
Gerd
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Gerd I suspected this after I noticed that the repeat flags in the various street Mdr sections had been changed when there were differently cased versions of street names. MdrCheck complains about the result. My test example didn't have differently cased versions of cities so Mdr5/Mdr25 didn't change. Ticker On Tue, 2021-11-16 at 10:00 +0000, Gerd Petermann wrote:
Hi Ticker,
I think mdr25 is recalculated. I modified mkgmap to write only one city name for mdr25 and created a gmapsupp with MapSource. The mdr25 in the file contains more entries, so it should be possible to use that for testing.
Gerd
________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Gerd Petermann <gpetermann_muenchen@hotmail.com> Gesendet: Montag, 15. November 2021 20:24 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] change mdr25 logic
Hi Ticker,
I didn't notice that the Mdr25 is the same. In that case it is really no help.
Gerd
________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Ticker Berkin <rwb-mkgmap@jagit.co.uk> Gesendet: Montag, 15. November 2021 20:17 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] change mdr25 logic
Hi Gerd
If the --gmapi map I load isn't build with --index, MapSource map install doesn't create one in the gmapsupp.img. I couldn't see a way of forcing either MapSource or BaseCamp to build an index.
If I start with a --gmapi with --index, using BaseCamp/MapInstall, the Mdr section seems to lose Mdr13, Mdr14, Mdr15, Mdr21, Mdr23, Mdr26, Mdr27, Mdr28 and gain Mdr17. The other Mdr sections have the same number of records, but, as expected, different record sizes. Mdr25 hasn't changed.
I also get: 00007420.MD2 141492
along with the normal: 00007420.MDR 1166713
Ticker
On Mon, 2021-11-15 at 18:55 +0000, Gerd Petermann wrote:
Hi Ticker,
both MapSource and Basecamp allow to install a map on the device or on a USB stick that has a Garmin directory. You select one or more tiles and the programs write a gmapsupp.img with an index for those tiles.
Gerd
________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Ticker Berkin <rwb-mkgmap@jagit.co.uk> Gesendet: Montag, 15. November 2021 19:24 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] change mdr25 logic
Hi Gerd
How do you make it do this?
Ticker
On Fri, 2021-10-22 at 09:06 +0000, Gerd Petermann wrote:
Hi Ticker,
just learned (again) that MapInstall fills Mdr25 when it writes a gmapsupp. That should help.
Gerd
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Gerd Mdr25 is effectively sorting by country, city, region. However it only detects changes in city or region. This would only be a problem if there were adjacent equal city®ion but in different countries - this is very unlikely. An additional test for this would clarify; maybe starting off as a warning or assertion. My reading of the code is that Mdr25 will be smaller than Mdr5 when the same city/region/country occurs in more than one map. The change c.getMdrCountry().getName() to c.getCountryName() is clearer and should give identical results. There are number of places in mdr where collator.compare() should be considered instead of .name.equals(). I think this should be done as a separate batch once r4809 has settled down. Ticker On Fri, 2021-10-22 at 08:53 +0000, Gerd Petermann wrote:
Hi Ticker,
attached are two slightly different patches for Mdr25 which I think make the code more plausible. v2 would be my choice. I've not yet tried to find out (again) how the sort works regarding strength.
In my maps I see that Mdr25 contains fewer records than Mdr5 (e.g. 7609 of 8275 or 1146 of 1850), but I have no clue yet how to find out which recrods from Mdr5 are skipped, means, what exactly has to be compared.
Gerd _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
participants (3)
-
Gerd Petermann
-
Gerd Petermann
-
Ticker Berkin