[mkgmap-dev] multiple garmin elements from one osm element
From Felix Hartmann extremecarver at googlemail.com on Sun Jul 19 20:23:25 BST 2009
Is there a big speed difference when using your patches? I currently have quite some difficulties running extensive checks, as I can only create maps via remote desktop. Principally I think many people await this feature. 2009/7/19 Torsten Leistikow <de_muur at gmx.de> > Moin, > > finally I got my eclipse environment running and was able to build > mkgmap from source. So the next step was my first extension of mkgmap. > > Until now a single OSM element was converted into a single garmin > element, i.e. the first one in the style file with the matching expression. > > I have extended the style definition by two commands (stop and > continue), to allow the > generation of multiple elements. > > A classic conversion rule has a syntax like: > > amenity=restaurant [0x2a00 resolution 20] > > With my extension this is equal to > > amenity=restaurant [0x2a00 resolution 20 stop] > > and has the meaning: If this rule is used, no further rules will be > applied to the element. > > If this line is changed now to > > amenity=restaurant [0x2a00 resolution 20 continue] > > mkgmap will convert a matching OSM element into a garmin Element type > 0x2a00, but afterwards it will check, whether another rule is matching > for the same osm element. So this will allow, that for the same item > additionally a > > tourism=hotel [0x2b01 resolution 20] > > rule might be applied. > > My modification is working on points as well as on lines or polygons, > i.e. it will also help with barrier=fence problem. > > There are two problems with my modification: > > 1. The POI generation for an area will not work, with multiple > conversion rules. > > 2. I do not know, how to provide a proper patch for my modification, so > I just attached the modified java-files (based on mkgmap-r1087). > > I hope you can incorporate the modification into your mkgmap and give it > a try. Without any change to the style, the modification should not > change anything. As a try, you could add the continue command to all > point rules and all barrier rules. > > What do you think about it? > > Gruss > Torsten > > _______________________________________________ > mkgmap-dev mailing list > mkgmap-dev at lists.mkgmap.org.uk > http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20090719/92df7669/attachment.html
- Previous message: [mkgmap-dev] multiple garmin elements from one osm element
- Next message: [mkgmap-dev] multiple garmin elements from one osm element
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list