logo separator

[mkgmap-dev] Commit: r3160: Fix 'Invalid rule' problem with rules containing OR terms.

From svn commit svn at mkgmap.org.uk on Wed Apr 2 11:53:55 BST 2014

Version mkgmap-r3160 was committed by steve on Wed, 02 Apr 2014

Fix 'Invalid rule' problem with rules containing OR terms.

Fairly complex rules that did not start with a definite key=value term and
that also included some terms that were or'ed together would not always be
resolved correctly and resulted in an error.

A group of alternatives is now weighted according to the term with the worst selectivity, not the
best. So alternatives will only be brought to the front if they are all definite key=value terms
and other terms are less selective.

Also we arrange (A&B)&C to A&(B&C) so that the first term can be recognised properly.


More information about the mkgmap-dev mailing list