[OSM-dev] perl style: extracting bitpairs from a byte

Martijn van Oosterhout kleptog at gmail.com
Wed May 2 19:43:53 BST 2007


On 5/2/07, OJW <streetmap at blibbleblobble.co.uk> wrote:
> There's a vec() function in perl, which might be worth considering when
> reading oceantiles_x.dat:
>
> http://perldoc.perl.org/functions/vec.html

Interesting. It's not 100% compatable with the format already in use
(bits within the byte are the other way round) but since the
oceantiles data is currently generate from the PNG it should be easy
to fix.

Have a nice day,
-- 
Martijn van Oosterhout <kleptog at gmail.com> http://svana.org/kleptog/




More information about the dev mailing list