logo separator

[mkgmap-dev] stats about style rules

From Gerd Petermann gpetermann_muenchen at hotmail.com on Wed Nov 19 08:40:52 GMT 2014

Hi all,

see also 
http://gis.19327.n5.nabble.com/Error-not-detected-tp5823898p5823965.html

I've implemented a quick solution which reports how often a rule expression was 
evaluated and how often the evaluation returned true.

I can think of many ways to report this info, so I started with the most simple format:
<prefix> <style file> "stats (rule/evals/true)" <expression> /<numEval>/<numTrue>

Attached is the patch that implements this and a sample configuration file
for the logging containing this line:
uk.me.parabola.mkgmap.osmstyle.StyleImpl.level=INFO 

The new option is activated with --report-style-stats.

A compiled mkgmap binary can be found here:
http://files.mkgmap.org.uk/download/226/mkgmap.jar

Any comment is welcome!

Gerd
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20141119/511bfdf5/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: styleStats-v1.patch
Type: application/octet-stream
Size: 10489 bytes
Desc: not available
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20141119/511bfdf5/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sample.zip
Type: application/zip
Size: 14538 bytes
Desc: not available
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20141119/511bfdf5/attachment-0001.zip>


More information about the mkgmap-dev mailing list