[mkgmap-dev] [Patch v1] Don't write useless data to NET file
From GerdP gpetermann_muenchen at hotmail.com on Fri Oct 11 07:59:55 BST 2013
Hi, I think mkgmap writes too much data to the NET file, or some of it is probably wrong. Since r2586 we "use merge-lines for all lines in all resolutions, except for roads in res 24" In MapBuilder.LineAddFilter we have code that checks whether a line is a road, if yes, the MapLine is added to the corresponding RoadDef instance and later it is written to the NET file. We do this for all resolutions, no matter wheter the road was merged with other lines or not. I wondered why this did not cause trouble, as a RoadDef instance now may point to very different polylines at the different resolutions. I changed the code so that we only add the line to the RoadDef in resolution 24. See attached patch. reduce_net_v1.patch <http://gis.19327.n5.nabble.com/file/n5781077/reduce_net_v1.patch> I did not see any change in MapSource, routing etc. seems to work as before, but the img file size was reduced from ~140Mb to ~130MB. Compiled binary based on trunk version r2748 is here: http://files.mkgmap.org.uk/download/157/mkgmap.jar @Steve: I assume that the Garmin maps contain also data for lower resolutions in NET, so maybe they also have NOD data that points to this while we have not? Gerd -- View this message in context: http://gis.19327.n5.nabble.com/Patch-v1-Don-t-write-useless-data-to-NET-file-tp5781077.html Sent from the Mkgmap Development mailing list archive at Nabble.com.
- Previous message: [mkgmap-dev] mergeroads branch - how to set street labels in style files
- Next message: [mkgmap-dev] [Patch v1] Don't write useless data to NET file
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list