Error in style: Error: X3:NOT

Hi all, - mkgmap-r3447 - java version "1.8.0_31" Java(TM) SE Runtime Environment (build 1.8.0_31-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode) I got an error « Error in style: Error: X3:NOT » with « !(tunnel=yes) » in lines file, and the process stops. No problem with « tunnel!=yes ». Steph

Hi Steph, I assume a missing braket or similar. Please post the complete rule or lines file. Gerd Stéphane MARTIN wrote
Hi all,
- mkgmap-r3447 - java version "1.8.0_31" Java(TM) SE Runtime Environment (build 1.8.0_31-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)
I got an error « Error in style: Error: X3:NOT » with « !(tunnel=yes) » in lines file, and the process stops.
No problem with « tunnel!=yes ».
Steph _______________________________________________ mkgmap-dev mailing list
mkgmap-dev@.org
-- View this message in context: http://gis.19327.n5.nabble.com/Error-in-style-Error-X3-NOT-tp5833111p5833114... Sent from the Mkgmap Development mailing list archive at Nabble.com.

Hi I found that: !(tunnel=no) & !(tunnel=yes) triggers the error, so it is possible to see it with a syntactically correct rule. It is however still not possible to make that rule work, since it is true even if tunnel is not present. So it is still an error in this case. ..Steve

Hi, In mkgmap-r3447/examples/styles/default/lines line 167 is : (railway=rail | railway=tram | railway=disused | railway=subway | railway=narrow_gauge | railway=light_rail | railway=preserved) & !(tunnel=yes) [0x14 resolution 22] Steph Le 10/02/2015 19:14, Steve Ratcliffe a écrit :
Hi
I found that: !(tunnel=no) & !(tunnel=yes)
triggers the error, so it is possible to see it with a syntactically correct rule. It is however still not possible to make that rule work, since it is true even if tunnel is not present. So it is still an error in this case.
..Steve

On 10/02/15 22:36, Stéphane MARTIN wrote:
line 167 is : (railway=rail | railway=tram | railway=disused | railway=subway | railway=narrow_gauge | railway=light_rail | railway=preserved) & !(tunnel=yes) [0x14 resolution 22]
That line works for me. It is after all the default style, there must be something else going on to make it fail. ..Steve

Right ! The mistake comes from me :-( Thank you Gerd and Steve ! Steph Le 10/02/2015 19:54, Steve Ratcliffe a écrit :
On 10/02/15 22:36, Stéphane MARTIN wrote:
line 167 is : (railway=rail | railway=tram | railway=disused | railway=subway | railway=narrow_gauge | railway=light_rail | railway=preserved) & !(tunnel=yes) [0x14 resolution 22]
That line works for me. It is after all the default style, there must be something else going on to make it fail.
..Steve
participants (3)
-
GerdP
-
Steve Ratcliffe
-
Stéphane MARTIN