[mkgmap-dev] [PATCH v2] - Add support for marine (aka extended) types
From Mark Burton markb at ordern.com on Mon Aug 10 12:44:01 BST 2009
v2 Space optimisation - no longer outputs per-subdivision 13-byte record if the map contains no elements that have an extended type. ------------------- Ahoy there shipmates, This patch is a first stab at providing support for the 3-byte extended types that are used on marine maps. Extended types are specified as a 6 digit hex number. The first two digits are always 01. An example type is 0x010200 (point type Buoy). Points, lines and polygons can all be given extended types. The cGPSMapper user manual lists all of the types. Note that routable ways cannot have an extended type. If you try to give a road an extended type, it will converted into a line. At this time, the various extra attributes that can be assigned to the marine entities (depth, colour, light colour/flash, etc.) are not handled but I have made some progress in understanding their encoding so at least some of these could be supported in the future. Obviously, the OSM data would need to be enriched to specify the required attributes. It now works well enough to warrant testing on more map data but I am expecting that there will be problems given the extent of the patch and the nature of what it's doing. Please test if you can and report success/failure/etc. Cheers, Mark -------------- next part -------------- A non-text attachment was scrubbed... Name: mb-extended-types-v2.patch Type: text/x-patch Size: 27689 bytes Desc: not available Url : http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20090810/9b1b34cd/attachment.bin
- Previous message: [mkgmap-dev] Commit: r1129: Fix disapearing multipolys if the first point happens to be the closest.
- Next message: [mkgmap-dev] Splitting multipolygons
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list