logo separator

[mkgmap-dev] side effects add-pois-to-lines

From Torsten Leistikow de_muur at gmx.de on Sun Nov 27 16:39:56 GMT 2011

Greg Troxel schrieb am 27.11.2011 17:12:
> I still don't understand why it would make sense to make a POI
> per node.  What I'm getting at is that perhaps the line2poi code should
> somehow default to making only one synthetic point POI.

Below is an example from my points-style, where I generate icons for incline
values set to a line, similar to the highway=incline POIs. Perhaps it would be
enough, to generate a single icon for each way marked with incline=*, but by
generating the icons for all nodes of the way, it is better visible, where the
inlcine starts and where it ends.

Gruss
Torsten

highway=incline
[0x4009 resolution 24 continue]
highway=incline_steep
[0x400a resolution 24 continue]
highway=* & mkgmap:line2poitype=* & mkmap_incline_type!=done & incline ~
'^-?[0-9].*'  {set mkmap_incline_type=numeric}
highway=* & mkgmap:line2poitype=* & mkmap_incline_type=numeric & incline ~
'^-?[2-9][0-9].*' & incline ~ '.*%'  {set name=">20%"; set ref=""; set
mkmap_incline_type=done}   [0x400a resolution 24 continue with_actions]
highway=* & mkgmap:line2poitype=* & mkmap_incline_type=numeric & incline ~
'^-?19.*' & incline ~ '.*%'  {set name="19%"; set ref=""; set
mkmap_incline_type=done}   [0x400a resolution 24 continue with_actions]
highway=* & mkgmap:line2poitype=* & mkmap_incline_type=numeric & incline ~
'^-?18.*' & incline ~ '.*%'  {set name="18%"; set ref=""; set
mkmap_incline_type=done}   [0x400a resolution 24 continue with_actions]
highway=* & mkgmap:line2poitype=* & mkmap_incline_type=numeric & incline ~
'^-?17.*' & incline ~ '.*%'  {set name="17%"; set ref=""; set
mkmap_incline_type=done}   [0x400a resolution 24 continue with_actions]
highway=* & mkgmap:line2poitype=* & mkmap_incline_type=numeric & incline ~
'^-?16.*' & incline ~ '.*%'  {set name="16%"; set ref=""; set
mkmap_incline_type=done}   [0x400a resolution 24 continue with_actions]
highway=* & mkgmap:line2poitype=* & mkmap_incline_type=numeric & incline ~
'^-?15.*' & incline ~ '.*%'  {set name="15%"; set ref=""; set
mkmap_incline_type=done}   [0x400a resolution 24 continue with_actions]
highway=* & mkgmap:line2poitype=* & mkmap_incline_type=numeric & incline ~
'^-?14.*' & incline ~ '.*%'  {set name="14%"; set ref=""; set
mkmap_incline_type=done}   [0x400a resolution 24 continue with_actions]
highway=* & mkgmap:line2poitype=* & mkmap_incline_type=numeric & incline ~
'^-?13.*' & incline ~ '.*%'  {set name="13%"; set ref=""; set
mkmap_incline_type=done}   [0x400a resolution 24 continue with_actions]
highway=* & mkgmap:line2poitype=* & mkmap_incline_type=numeric & incline ~
'^-?12.*' & incline ~ '.*%'  {set name="12%"; set ref=""; set
mkmap_incline_type=done}   [0x400a resolution 24 continue with_actions]
highway=* & mkgmap:line2poitype=* & mkmap_incline_type=numeric & incline ~
'^-?11.*' & incline ~ '.*%'  {set name="11%"; set ref=""; set
mkmap_incline_type=done}   [0x400a resolution 24 continue with_actions]
highway=* & mkgmap:line2poitype=* & mkmap_incline_type=numeric & incline ~
'^-?10.*' & incline ~ '.*%'  {set name="10%"; set ref=""; set
mkmap_incline_type=done}   [0x400a resolution 24 continue with_actions]
highway=* & mkgmap:line2poitype=* & mkmap_incline_type=numeric & incline ~
'^-?9.*' & incline ~ '.*%'  {set name="9%"; set ref=""; set
mkmap_incline_type=done}   [0x400a resolution 24 continue with_actions]
highway=* & mkgmap:line2poitype=* & mkmap_incline_type=numeric & incline ~
'^-?8.*' & incline ~ '.*%'  {set name="8%"; set ref=""; set
mkmap_incline_type=done}   [0x400a resolution 24 continue with_actions]
highway=* & mkgmap:line2poitype=* & mkmap_incline_type=numeric & incline ~
'^-?7.*' & incline ~ '.*%'  {set name="7%"; set ref=""; set
mkmap_incline_type=done}   [0x4009 resolution 24 continue with_actions]
highway=* & mkgmap:line2poitype=* & mkmap_incline_type=numeric & incline ~
'^-?6.*' & incline ~ '.*%'  {set name="6%"; set ref=""; set
mkmap_incline_type=done}   [0x4009 resolution 24 continue with_actions]
highway=* & mkgmap:line2poitype=* & mkmap_incline_type=numeric & incline ~
'^-?5.*' & incline ~ '.*%'  {set name="5%"; set ref=""; set
mkmap_incline_type=done}   [0x4009 resolution 24 continue with_actions]
highway=* & mkgmap:line2poitype=* & mkmap_incline_type=numeric & incline ~
'^-?4.*' & incline ~ '.*%'  {set name="4%"; set ref=""; set
mkmap_incline_type=done}   [0x4009 resolution 24 continue with_actions]
highway=* & mkgmap:line2poitype=* & mkmap_incline_type=numeric & incline ~
'^-?3.*' & incline ~ '.*%'  {set name="3%"; set ref=""; set
mkmap_incline_type=done}   [0x4009 resolution 24 continue with_actions]
highway=* & mkgmap:line2poitype=* & mkmap_incline_type=numeric & incline ~
'^-?[2-9][0-9].*' & incline ~ '.*°'  {set name=">20%"; set ref=""; set
mkmap_incline_type=done}   [0x400a resolution 24 continue with_actions]
highway=* & mkgmap:line2poitype=* & mkmap_incline_type=numeric & incline ~
'^-?19.*' & incline ~ '.*°'  {set name=">20%"; set ref=""; set
mkmap_incline_type=done}   [0x400a resolution 24 continue with_actions]
highway=* & mkgmap:line2poitype=* & mkmap_incline_type=numeric & incline ~
'^-?18.*' & incline ~ '.*°'  {set name=">20%"; set ref=""; set
mkmap_incline_type=done}   [0x400a resolution 24 continue with_actions]
highway=* & mkgmap:line2poitype=* & mkmap_incline_type=numeric & incline ~
'^-?17.*' & incline ~ '.*°'  {set name=">20%"; set ref=""; set
mkmap_incline_type=done}   [0x400a resolution 24 continue with_actions]
highway=* & mkgmap:line2poitype=* & mkmap_incline_type=numeric & incline ~
'^-?16.*' & incline ~ '.*°'  {set name=">20%"; set ref=""; set
mkmap_incline_type=done}   [0x400a resolution 24 continue with_actions]
highway=* & mkgmap:line2poitype=* & mkmap_incline_type=numeric & incline ~
'^-?15.*' & incline ~ '.*°'  {set name=">20%"; set ref=""; set
mkmap_incline_type=done}   [0x400a resolution 24 continue with_actions]
highway=* & mkgmap:line2poitype=* & mkmap_incline_type=numeric & incline ~
'^-?14.*' & incline ~ '.*°'  {set name=">20%"; set ref=""; set
mkmap_incline_type=done}   [0x400a resolution 24 continue with_actions]
highway=* & mkgmap:line2poitype=* & mkmap_incline_type=numeric & incline ~
'^-?13.*' & incline ~ '.*°'  {set name=">20%"; set ref=""; set
mkmap_incline_type=done}   [0x400a resolution 24 continue with_actions]
highway=* & mkgmap:line2poitype=* & mkmap_incline_type=numeric & incline ~
'^-?12.*' & incline ~ '.*°'  {set name=">20%"; set ref=""; set
mkmap_incline_type=done}   [0x400a resolution 24 continue with_actions]
highway=* & mkgmap:line2poitype=* & mkmap_incline_type=numeric & incline ~
'^-?11.*' & incline ~ '.*°'  {set name="19%"; set ref=""; set
mkmap_incline_type=done}   [0x400a resolution 24 continue with_actions]
highway=* & mkgmap:line2poitype=* & mkmap_incline_type=numeric & incline ~
'^-?10.*' & incline ~ '.*°'  {set name="18%"; set ref=""; set
mkmap_incline_type=done}   [0x400a resolution 24 continue with_actions]
highway=* & mkgmap:line2poitype=* & mkmap_incline_type=numeric & incline ~
'^-?9.*' & incline ~ '.*°'  {set name="16%"; set ref=""; set
mkmap_incline_type=done}   [0x400a resolution 24 continue with_actions]
highway=* & mkgmap:line2poitype=* & mkmap_incline_type=numeric & incline ~
'^-?8.*' & incline ~ '.*°'  {set name="14%"; set ref=""; set
mkmap_incline_type=done}   [0x400a resolution 24 continue with_actions]
highway=* & mkgmap:line2poitype=* & mkmap_incline_type=numeric & incline ~
'^-?7.*' & incline ~ '.*°'  {set name="12%"; set ref=""; set
mkmap_incline_type=done}   [0x400a resolution 24 continue with_actions]
highway=* & mkgmap:line2poitype=* & mkmap_incline_type=numeric & incline ~
'^-?6.*' & incline ~ '.*°'  {set name="11%"; set ref=""; set
mkmap_incline_type=done}   [0x400a resolution 24 continue with_actions]
highway=* & mkgmap:line2poitype=* & mkmap_incline_type=numeric & incline ~
'^-?5.*' & incline ~ '.*°'  {set name="9%"; set ref=""; set
mkmap_incline_type=done}   [0x400a resolution 24 continue with_actions]
highway=* & mkgmap:line2poitype=* & mkmap_incline_type=numeric & incline ~
'^-?4.*' & incline ~ '.*°'  {set name="7%"; set ref=""; set
mkmap_incline_type=done}   [0x4009 resolution 24 continue with_actions]
highway=* & mkgmap:line2poitype=* & mkmap_incline_type=numeric & incline ~
'^-?3.*' & incline ~ '.*°'  {set name="5%"; set ref=""; set
mkmap_incline_type=done}   [0x4009 resolution 24 continue with_actions]
highway=* & mkgmap:line2poitype=* & mkmap_incline_type=numeric & incline ~
'^-?2.*' & incline ~ '.*°'  {set name="3%"; set ref=""; set
mkmap_incline_type=done}   [0x4009 resolution 24 continue with_actions]



More information about the mkgmap-dev mailing list