
Hi Steve, no problem, just wanted to make sure that I understand the code. The comments for SimpleStreetPhoneNumber are a bit confusing. I don't understand the (or A) in "If the string is not all numeric (or A) " Gerd Steve Ratcliffe wrote
Hi Gerd
I wondered why the patched version produces slightly smaller img files. If I got that right, the reason is that street numbers and phone numbers containing a "-" are encoded as "simple number" now ?
Yes simple numbers are stored two to a byte in base 11 with '-' being the digit after 9 so takes about half the number of bytes. If it is stored as a label, you have the lbl pointer, 3 bytes, plus the null byte. For a ten digit number you save about 9 bytes by encoding it as a simple number. Not much but it might add up to enough to save a block. Or do you think that there is a problem?
This bug has been there ever since the code was added in 2009!
..Steve _______________________________________________ mkgmap-dev mailing list
mkgmap-dev@.org
-- View this message in context: http://gis.19327.n5.nabble.com/Assertion-error-with-r3350-tp5824877p5825012.... Sent from the Mkgmap Development mailing list archive at Nabble.com.