[mkgmap-dev] Embedding raster maps
From Steve Ratcliffe steve at parabola.me.uk on Thu Jan 7 10:31:32 GMT 2021
Hi Oliver > thanks for the file. On my device nothing is visible at all. But > that's kind of an information, too. There is no way to circle down > bugs by simply skipping the extended part. To be clear, nothing is visible on my device either with that polygon type. Only if I change the type to something else (I used 0x10101) do I see anything. As far as I know extended polygons work in mkgmap and I just assumed that it is a reserved type for the images or something similar. > Probably it is still some missing encoding. In the Isle of Man map > (and others) there is much more information in the RGN header. Note > the values in the "filling bytes". And there seems to be an > additional section after the extended point2 section. I called it > offset1/length2. mkgmap sets all of these to zero and seems to work. Of course it may not work for your purpose with the images. I would try taking a copy of a working map and zeroing out some of the unknown things until it stops working. You will then know if something is essential or not. I have no ideas about what byte0x00000025_0x00000038 could be. They look like bitmaps or flags to me. > Maybe one of you has an idea what it's about. I also uploaded my I've had a go at displaying this section and I have uploaded a sample to: http://files.mkgmap.org.uk/detail/497 There is an initial part followed by two lists, the first has five byte records and the second 4 bytes. My guess is that the first one is related to polygon types and the second is some kind of index sorted by type or by zoom and/or division. Presumably it points into the extended polygon section, but I do not have anything that displays that section at the moment so I can't yet match anything up. The code I used is in the method RngDisplay::displayRgn5() in the display project. (The particular file is at https://svn.mkgmap.org.uk/mkgmap/display/trunk/src/test/display/RgnDisplay.java) This works with the files that are available to me, maybe not on anything else :) Cheers, Steve
- Previous message: [mkgmap-dev] Embedding raster maps
- Next message: [mkgmap-dev] Embedding raster maps
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list