logo separator

[mkgmap-dev] R${rcn_ref}

From gbbickerton gbbickerton at yahoo.com on Fri Dec 7 12:42:29 GMT 2012

Thanks for your help I  did not like the shields anyway I am using this which
works well

#My solution to colour code cycle routes

#in lines file above other highways
#types a bitmap 10 wide with a 4 wide transparent center so other ways show
through

#Colour cycleways individually

reivers=yes { name '${reiversname} (${reiversref})' |'${reiversname}'
|'${reiversref}' } [0x1001A resolution 22 continue with_actions]

hadrian=yes { name '${hadrianname} (${hadrianref})' |'${hadrianname}'
|'${hadrianref}' } [0x1001B resolution 22 continue with_actions]

pennine=yes { name '${penninename} (${pennineref})' |'${penninename}'
|'${pennineref}' } [0x1001C resolution 22 continue with_actions]

c2c=yes { name '${c2cname} (${c2cref})' |'${c2cname}' |'${c2cref}' }
[0x10019 resolution 22 continue with_actions]

ncn7=yes { name '${ncn7name} (${ncn7ref})' |'${ncn7name}' |'${ncn7ref}' }
[0x1001D resolution 22 continue with_actions]

(ncn=yes | rcn=yes) & customcolour!=yes  { name '${name} (${ref})'
|'${name}' |'${ref}' } [0x10018 resolution 22 continue with_actions]

#relations file

type=route & (ref='71') {apply {set customcolour=yes ; set c2c=yes ; set
c2c_ref='71'; set c2cname='C2C';}}

type=route & (ref='10') {apply {set customcolour=yes ; set reivers=yes ; set
reivers_ref='10'; set reiversname='Reivers';}}

type=route & (ref='72') {apply {set customcolour=yes ; set hadrian=yes ; set
hadrian_ref='72'; set hadrianname='Hadrian';}}

type=route & (ref='68') {apply {set customcolour=yes ; set pennine=yes ; set
pennine_ref='68'; set penninename='Pennine';}}

type=route & (ref='7') {apply {set customcolour=yes ; set ncn7=yes ; set
ncn7_ref='7'; set ncn7name='NcN7';}}

type=route  & network=ncn
		 {
		apply {
		set ncn=yes;
		set ncn_ref='$(ncn_ref)/${ref}' | '${ref}';
		set name='${name}';
	}
}
 
I was unfortunate to use some line types which do not show in Basecamp
initially which caused a huge amount of confusion trying to figure out what
was wrong with my code, perhaps mkgmap could test for unusable types.

Barry



--
View this message in context: http://gis.19327.n5.nabble.com/R-rcn-ref-tp5739297p5739544.html
Sent from the Mkgmap Development mailing list archive at Nabble.com.


More information about the mkgmap-dev mailing list