You are not logged in.
- Topics: Active | Unanswered
Announcement
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***
Pages: 1
#1 2013-01-22 00:31:14
- miramikes
- Member
- Registered: 2011-10-16
- Posts: 128
Syntax problem in lines file
Hello,
I am trying display classic+skating and classic;skating nordic ski tracks , but getting error:
piste:type=nordic & piste:grooming=classic+skating [0x10111 resolution 21 continue]
piste:type=nordic & piste:grooming=classic;skating [0x10111 resolution 21 continue]
Error in style: Error: (lines:121): Value 'classic' is not part of an expression
Error in style: Error: (lines:122): Value 'classic' is not part of an expression
Any idea how to fix syntax?
Thanks for help
mira
Offline
#2 2013-01-22 00:43:07
- AcousticNewt
- Member
- Registered: 2010-10-14
- Posts: 5
Re: Syntax problem in lines file
piste:type=nordic & piste:grooming=classic+skating [0x10111 resolution 21 continue]
piste:type=nordic & piste:grooming=classic;skating [0x10111 resolution 21 continue]Error in style: Error: (lines:121): Value 'classic' is not part of an expression
Error in style: Error: (lines:122): Value 'classic' is not part of an expression
You need to put quotes around strings that contain symbols or spaces. The colon is allowed without
any quotes as it is so common in key names, but there is no harm in quoting whenever in doubt.
piste:type=nordic & piste:grooming='classic+skating' [0x10111 resolution 21 continue]
piste:type=nordic & piste:grooming='classic;skating' [0x10111 resolution 21 continue]Double quotes would work too.
Offline
#3 2013-01-22 01:16:56
- miramikes
- Member
- Registered: 2011-10-16
- Posts: 128
Re: Syntax problem in lines file
miramikes wrote:piste:type=nordic & piste:grooming=classic+skating [0x10111 resolution 21 continue]
piste:type=nordic & piste:grooming=classic;skating [0x10111 resolution 21 continue]Error in style: Error: (lines:121): Value 'classic' is not part of an expression
Error in style: Error: (lines:122): Value 'classic' is not part of an expressionYou need to put quotes around strings that contain symbols or spaces. The colon is allowed without
any quotes as it is so common in key names, but there is no harm in quoting whenever in doubt.piste:type=nordic & piste:grooming='classic+skating' [0x10111 resolution 21 continue] piste:type=nordic & piste:grooming='classic;skating' [0x10111 resolution 21 continue]Double quotes would work too.
Many thanks! Works well.
mira
Offline
Pages: 1