Is it possible with --add-poi-to-lines option and style rules to create pois only for ways with a min/max/equal length?

Hi, i try to create a map including hiking trail markings usin r2748. So far i succeded using --add-poi-to-lines option and making the needed setting within relation and points style files. For every way part of a hiking route a poi is created. But to prevent map to be overcrowded by those trail marking pois, i would like to create those kind of POIs only for way parts with a minimum length. Something like "highway=* & length() >100 {set mkgmap:line2poi=false}" in the lines file, doesn't seems to work. (As far as i read meanwhile, points are processed before lines, so this can't work.) Is there a way with actuall code version to achieve it? best regards Gert

Hi Gert, as you found out yourself it does not work with current mkgmap releases. Instead you might use the additional tag mkgmap:line2poitype to reduce the poi clutter. Example in the points file: mgkmap:line2poitype!=mid { set mkgmap:line2poi=false } This sets the mkgmap:line2poi tag to false for all points that are not the mid point of a line. WanMil
Hi,
i try to create a map including hiking trail markings usin r2748.
So far i succeded using --add-poi-to-lines option and making the needed setting within relation and points style files. For every way part of a hiking route a poi is created.
But to prevent map to be overcrowded by those trail marking pois, i would like to create those kind of POIs only for way parts with a minimum length.
Something like "highway=* & length() >100 {set mkgmap:line2poi=false}" in the lines file, doesn't seems to work. (As far as i read meanwhile, points are processed before lines, so this can't work.)
Is there a way with actuall code version to achieve it?
best regards
Gert _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi WanMil, I think it's hard to draw route-icons with line2poi, because the segments have very different length. There are segments with only a few meters and also segments with lots of km. For a satisfying rendering you will need something like route-to-poi, which builds first the complete route and then adds points in a given distance, eg. 100m or so. line2poi is more or less only useful for things like adding an icon for a ford or a entrance of a tunnel. But I think this isn't that easy to implement and there are actual other things to do. Henning
participants (3)
-
Anna Leuchter
-
Henning Scholland
-
WanMil