logo separator

[mkgmap-dev] [PATCH] Garmin symbol 0x2e06 both gas station and shop?

From Toby Speight T.M.Speight.90 at cantab.net on Thu Mar 12 19:59:11 GMT 2009

0> In article <20090312192741.GA24321 at x60s>,
0> Marko Mäkelä <URL:mailto:marko.makela at iki.fi> ("Marko") wrote:

Marko> amenity=fuel & shop!=* [0x2f01 resolution 19]
Marko> amenity=fuel & shop!=convenience [0x2f01 resolution 19]
Marko> amenity=fuel & shop=convenience [ 0x2e06 resolution 19 ]
Marko> shop=convenience & amenity!=fuel [0x2e02 resolution 20]
Marko> shop=convenience & amenity!=* [0x2e02 resolution 20]
Marko>
Marko> I would have written the rules as
Marko>
Marko> amenity=fuel & !(shop=convenience) [0x2f01 resolution 19]
Marko> amenity=fuel & shop=convenience [ 0x2e06 resolution 19 ]
Marko> shop=convenience & !(amenity=fuel) [0x2e02 resolution 20]
Marko>
Marko> but that lead to an exception

What about

amenity=fuel & shop=convenience [ 0x2e06 resolution 19 ]
amenity=fuel [0x2f01 resolution 19]
shop=convenience [0x2e02 resolution 20]

as (I believe) on a match, further rules are not evaluated.



More information about the mkgmap-dev mailing list