File:Int32 bits over lat.png

From OpenStreetMap Wiki
Jump to navigation Jump to search

Original file(1,060 × 742 pixels, file size: 5 KB, MIME type: image/png)

Using a binary planet.osm, coordinates can be converted from double (64bit) to int32. Bit consumption of longtiude is constantly 31 bit for 1cm resolution, and latitudes only require 32bit around the equator. As circumference decreases with increasing latitudes, some bits can be saved - at least when using a file as storage.

This graph shows how many bits are required to achieve 1cm resolution for lat values; The actual savings depend on node distribution.

Looks like it's not very much.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current20:26, 7 September 2006Thumbnail for version as of 20:26, 7 September 20061,060 × 742 (5 KB)Wollschaf (talk | contribs)Using a binary planet.osm, coordinates can be converted from double (64bit) to int32. Bit consumption of lon is constantly 32bit for 1cm resolution, but latitudes only require 32bit around the equator. As circumference decreases with increasing latitudes

There are no pages that use this file.