MAP(7)
β¨ NAME β¨
map β digitized map formats
okay so welcome to MAP(7) from the Miscellaneous Information Manual, bestie β this is the whole vibe for map, and it is lowkey iconic for a format page π
πΈ DESCRIPTION πΈ
Files used by map(7) are a sequence of structures of the form:
struct {
signed char patchlatitude;
signed char patchlongitude;
short n;
union {
struct {
short latitude;
short longitude;
} point[n];
struct {
short latitude;
short longitude;
struct {
signed char latdiff;
signed char londiff;
} point[-n];
} highres;
} segment;
};
where short stands for 16-bit integers and there is no padding within or between structs. Shorts are stored in little-endian order, low byte first. To assure portability, map accesses them bytewise. π«Ά
The patchlatitude and patchlongitude fields tell you which 10-degree by 10-degree patch of the earthβs surface a segment belongs to. Their values range from -9 to 8 and from -18 to 17, respectively, and indicate the coordinates of the southeast corner of the patch in units of 10 degrees. πβ¨
Each segment of |n| points is connected; consecutive segments are not necessarily related. Latitude and longitude are measured in units of 0.0001 radian. If n is negative, then differences to the first and succeeding points are measured in units of 0.00001 radian. Latitude is counted positive to the north and longitude positive to the west. π§
The patches are ordered lexicographically by then β and yeah, the source sentence literally trails off right there π β a printable index to the first segment of each patch in a file named data is kept in an associated file named data.x. Each line of an index file contains β the original text drops a word here too, no cap π β and the byte position of the patch in the map file. Both the map file and the index file are ordered by patch latitude and longitude. π
π¦ SEE ALSO π¦
map(7)- The data comes from the World Data Bank I and II and U.S. Government sources: the Census Bureau, Geological Survey, and CIA. π
Thatβs the whole MAP(7) page, bestie. The footer line in this copy is just MAP(7) β no separate source/version or date info beyond that, so thatβs the cute sign-off. ππ
π¦ where this page comes from
- alpine 3.24: plan9port-doc 0_git20260208-r0 Β· LPL-1.02
- arch rolling: plan9port 20261021-2 Β· custom
- nixos 26.05: plan9port 0-unstable-2025-11-10
- nixos 26.05: plan9port-wayland 0-unstable-2025-11-26
- nixpkgs unstable: plan9port 0-unstable-2025-11-10
- nixpkgs unstable: plan9port-wayland 0-unstable-2025-11-26
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms