Re: [mkgmap-dev] Indexing street belonging to two cities
Hi Gerd, > The doc shows that you can have up to three cities, and I've no idea > how to decide which numbers belong to which city. I guess the reasonable solution is to split "CityName" and assign all numbers to all cities. I have tested a bit my map and found that with 2 cities in "numbers" statement without house numbers, search index contains left city (first in statement) and combined city name (Left@Right) form "CityName" statement. Right city is missing. > The good thing is that we have a *.mp file and a GMP output. This > should help to understand the GMP format. This is not a true GMP format. This is an old MPC data packed as a GMP. I have discovered that it works and implemented conversion MPC->NT in GmapTool. Then I explained the idea to Staszek Kozicki and he implemented the same in cGPSmapper. You can convert any img using command line version of GMapTool like this: gmt -jxzo ntlike.img source.img MPC data consist of blocks TRE, RGN, LBL etc. Each block starts with a header and then data. Header contains pointers to data. GMP is similar. It starts with a GMP header, then it contains TRE, RGN, LBL, NET, NOD, DEM (sometimes more) headers and then all data. GMP header contains pointers to following headers. It is relatively easy pack old format as GMP. But it is not a real thing, since it doesn't use any features of NT maps. -- Best regards, Andrzej ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Re: [mkgmap-dev] Indexing street belonging to two cities
Hi Andrzej, I guess that works but Piotrs data is different. It has e.g. Numbers1=0,O,7,11,E,12,18 Numbers2=1,O,21,29,E,20,24 Numbers3=2,B,31,31,E,28,38 Numbers4=3,N,-1,-1,E,40,48 CityName=Teresin@Granice The doc shows that you can have up to three cities, and I've no idea how to decide which numbers belong to which city. I assume that the "multiple cities" stuff forces the GMP format, but I didn't try this. I just verified that my version of cGPSMapper also writes the GMP format for Piotrs input file. Maybe someone can analyse that in detail. The good thing is that we have a *.mp file and a GMP output. This should help to understand the GMP format. Gerd Von: mkgmap-dev im Auftrag von Andrzej Popowski Gesendet: Sonntag, 23. Oktober 2022 00:13 An: mkgmap-dev@lists.mkgmap.org.uk Betreff: Re: [mkgmap-dev] Indexing street belonging to two cities Hi Gerd, > I thought that mkgmap can handle roads with multiple cities but you > seem to be right that this only works when the cities are encoded with > the house numbers. Actually in mp format you can encode void house numbers with 2 cities. Doesn't it work in mkgmap? I mean statement like: Numbers1=0,N,-1,-1,N,-1,-1,Płońsk,-1,-1,Skarżyn,-1,-1 -- Best regards, Andrzej ___ 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