MAP(1)
π MAP π
okay so bestie, welcome to the map page from the General Commands Manual β yes, that's the official manual name, and no, we're not gonna be normal about it π
this is the part where I tell you what these little icons do, so grab a π and let's go.
β¨ NAME β¨
map, mapdemo, mapd β draw maps on various projections π
like, literally the whole point: you want a map? on a projection? pick your fave, we're drawing it πΊοΈβ¨
π SYNOPSIS π
so here's the vibe check on how you actually call these things:
map projection [ option ... ]
mapdemo
okay so map takes a projection and then as many *option*s as your heart desires (that's the [ option ... ] bit β optional, but you can stack 'em) π«Ά
and mapdemo? iconic behaviour honestly β it just runs, no args, no notes, main character energy π
ngl bestie, this is only the start of the page β the descriptions, options and all the juicy bits are coming up next π don't touch that dial!
β¨ DESCRIPTION β¨
okay so here's the whole vibe: map writes a map to standard output, and that map is made to be shown off by any of the plotting filters that live in plot(1). cute, right? π And if you hit it with an unknown projection, it doesn't just die on you β it pops a whole menu of projections at you so you can pick one. iconic behaviour tbh. There's also mapdemo, which is basically a short course in mapping if you wanna learn by clicking around. π
By default map gives you world shorelines. That's the base fit. If you want the detailed stuff, -f unlocks data that's classified by feature β like, the deluxe dataset. β¨
πΊοΈ THE FEATURE FLAGS
-f [ feature ... ]β pull in more detailed data, sorted by feature.
So the tea on the ranking: features go from rank 1 (that's the default) up to 4, major to minor. And β super important β higher-numbered ranks include all the lower-numbered ones. So rank 4 isn't just the little guys, it comes with the whole family. π«Ά
The features are:
shore[1-4]β seacoasts, lakes, and islands. and heads up:-falways showsshore1, no matter what you asked for. it's non-negotiable, she's always invited. πilake[1-2]β intermittent lakesriver[1-4]β riversiriver[1-3]β intermittent riverscanal[1-3]β canals, and3means irrigation canalsglaciericeshelf[12]reefsaltpan[12]country[1-3]β2= disputed boundaries,3= indefinite boundariesstateβ states and provinces (US and Canada only)
quick note bestie: in other options, coordinates are in degrees, and north latitude and west longitude are counted as positive. don't get it twisted. π
π THE OPTIONS π
-l S N E Wβ set the southern and northern latitude and the eastern and western longitude limits. Any missing arguments get filled out from the list-90,90,-180,180, or from lesser limits suitable to the projection at hand. she'll figure it out. πΈ-k S N E Wβ set the scale as if for a map with limits-l S N E W. and the spicy part: do not consider any-lor-woption in setting scale. like, ignore them completely. π-o lat lon rotβ orient the map in a nonstandard position, and ngl this one is a whole little imagination exercise. picture a transparent gridded sphere around the globe:- Turn the overlay about the North Pole so that the Prime Meridian (longitude 0) of the overlay coincides with meridian lon on the globe.
- Then tilt the North Pole of the overlay along its Prime Meridian to latitude lat on the globe.
- Finally, again turn the overlay about its
North Poleso that its Prime Meridian coincides with the previous position of meridian rot.
Then project the map in the standard form appropriate to the overlay, but presenting information from the underlying globe. Missing arguments get filled out from the list 90, 0, 0. And in the absence of -o, the orientation is 90, 0, m, where m is the middle of the longitude range. π¦
-w S N E Wβ window the map by the specified latitudes and longitudes in the tilted, rotated coordinate system. Missing arguments are filled out from the list-90,90,-180,180.
fr fr it is wise to give an encompassing-loption with-w. otherwise, for small windows, computing time varies inversely with area! π yes really. tiny window, huge wait. you've been warned.
-d nβ for speed, plot only every *n*th point. speedrun mode. π₯-rβ reverse left and right (good for star charts and inside-out views). π-vβ Verso. switch to the normally suppressed sheet of the map β like the back side of the earth in orthographic projection. the hidden side, the B-side. π-s1β superpose. outputs for a-s1map have no closing.-s2β superpose. outputs for a-s2map have no opening. the-s1and-s2outputs may be concatenated. π§-g dlat dlon resβ grid spacings are dlat, dlon. zero spacing means no grid. missing dlat is taken to be zero; missing dlon is taken the same as dlat. grid lines are drawn to a resolution of res (2Β° or less by default). and in the absence of-g, the grid spacing is10Β°. β-p lat lon extentβ position the point lat, lon at the center of the plotting area. scale the map so that the height (and width) of the nominal plotting area is extent times the size of one degree of latitude at the center. by default maps are scaled and positioned to fit within the plotting area. and an extent overrides option-k. π-c x y rotβ after all other positioning and scaling operations have been performed, rotate the image rot degrees counterclockwise about the center and move the center to position x, y, where the nominal plotting area is-1β€xβ€1,-1β€yβ€1. missing arguments are taken to be0.-xβ allow the map to extend outside the nominal plotting area. π«Ά
-m [ file ... ]β use map data from the named files. if no files are named, omit map data entirely. names that don't exist as pathnames get looked up in a standard directory β which contains, in addition to the data for-f:worldβ World Data Bank I (default)statesβ US map from Census Bureaucountiesβ US map from Census Bureau
also: the environment variables MAP and MAPDIR change the default map and the default directory. β¨
-b [lat0 lon0 lat1 lon1... ]β suppress the drawing of the normal boundary (the one defined by options-land-w). coordinates, if present, define the vertices of a polygon to which the map is clipped. if only two vertices are given, they're taken to be the diagonal of a rectangle. and to actually draw that polygon, give its vertices as a-utrack. π-t file ...β the files contain lists of points, given as latitude-longitude pairs in degrees. if the first file is named-, the standard input is taken instead. the points of each list are plotted as connectedtracks. π«
Points in a track file may be followed by label strings. a label breaks the track. a label may be prefixed by ", or and is terminated by a newline. an unprefixed string or a string prefixed with " is displayed at the designated point. the first word of a or string names a special symbol (see option -y). an optional numerical second word is a scale factor for the size of the symbol, 1 by default. a symbol is aligned with its top to the north; a symbol is aligned vertically on the page. π¦
-u file ...β same as-t, except the tracks are unbroken lines. (-ttracks appear as dot-dashed lines if the plotting filter supports them.) πΈ-y fileβ the file containsplot(7)-style data fororlabels in-tor-ufiles. each symbol is defined by a comment:namethen a sequence ofandcommands. coordinates(0,0)fall on the plotting point. default scaling is as if the nominal plotting range werecommandsin file change the scaling. π§
πΊοΈ Projections πΊοΈ
Equatorial projections centered on the Prime Meridian (longitude 0). Parallels are straight horizontal lines.
mercatorβ equally spaced straight meridians, conformal, straight compass coursessinusoidalβ equally spaced parallels, equal-area, same ascylequalareacylequalarea lat0β equally spaced straight meridians, equal-area, true scale on lat0cylindricalβ central projection on tangent cylinderrectangular lat0β equally spaced parallels, equally spaced straight meridians, true scale on lat0gall lat0β parallels spaced stereographically on prime meridian, equally spaced straight meridians, true scale on lat0mollweideβ (homalographic) equal-area, hemisphere is a circlegilbertβ sphere conformally mapped on hemisphere and viewed orthographically
Azimuthal projections centered on the North Pole. Parallels are concentric circles. Meridians are equally spaced radial lines.
azequidistantβ equally spaced parallels, true distances from poleazequalareaβ equal-areagnomonicβ central projection on tangent plane, straight great circlesperspective distβ viewed along earth's axis dist earth radii from center of earthorthographicβ viewed from infinitystereographicβ conformal, projected from opposite polelaueβ radius =tan(2Γcolatitude), used in X-ray crystallographyfisheye nβ stereographic seen from just inside medium with refractive index nnewyorker rβ radius =log(colatitude/r): New Yorker map from viewing pedestal of radius r degrees
Polar conic projections symmetric about the Prime Meridian. Parallels are segments of concentric circles. Except in the Bonne projection, meridians are equally spaced radial lines orthogonal to the parallels.
conic lat0β central projection on cone tangent at lat0simpleconic lat0 lat1β equally spaced parallels, true scale on lat0 and lat1lambert lat0 lat1β conformal, true scale on lat0 and lat1albers lat0 lat1β equal-area, true scale on lat0 and lat1bonne lat0β equally spaced parallels, equal-area, parallel lat0 developed from tangent cone
Projections with bilateral symmetry about the Prime Meridian and the equator.
polyconicβ parallels developed from tangent cones, equally spaced along Prime Meridianaitoffβ equal-area projection of globe onto 2-to-1 ellipse, based onazequalarealagrangeβ conformal, maps whole sphere into a circlebicentric lon0β points plotted at true azimuth from two centers on the equator at longitudesΒ±lon0, great circles are straight lines (a stretchedgnomonic)elliptic lon0β points plotted at true distance from two centers on the equator at longitudesΒ±lon0globularβ hemisphere is circle, circular arc meridians equally spaced on equator, circular arc parallels equally spaced on 0- and 90-degree meridiansvandergrintenβ sphere is circle, meridians as inglobular, circular arc parallels resemblemercator
Doubly periodic conformal projections.
guyouβ W and E hemispheres are squaresquareβ world is square with Poles at diagonally opposite cornerstetraβ map on tetrahedron with edge tangent to Prime Meridian at S Pole, unfolded into equilateral trianglehexβ world is hexagon centered on N Pole, N and S hemispheres are equilateral triangles
Miscellaneous projections.
harrison dist angleβ oblique perspective from above the North Pole, dist earth radii from center of earth, looking along the Date Line angle degrees off verticaltrapezoidal lat0 lat1β equally spaced parallels, straight meridians equally spaced along parallels, true scale at lat0 and lat1 on Prime Meridianlune(lat,angle)β conformal, polar cap above latitude lat maps to convex lune with given angle at90Β°Eand90Β°W
Retroazimuthal projections. At every point the angle between vertical and a straight line to Mecca, latitude lat0 on the prime meridian, is the true bearing of Mecca.
mecca lat0β equally spaced vertical meridianshoming lat0β distances to Mecca are true
Maps based on the spheroid. Of geodetic quality, these projections do not make sense for tilted orientations. For descriptions, see corresponding maps above.
sp_mercatorsp_albers lat0 lat1
β¨ EXAMPLES β¨
π map perspective 1.025 -o 40.75 74
A view looking down on New York from 100 miles (0.025 of the 4000-mile earth radius) up. The job can be done faster by limiting the map so as not to plot the invisible part of the world: a circular border can be forced by adding option (Latitude 77.33Β° falls just inside a polar cap of opening angle arccos(1/1.025) = 12.6804Β°.)
π map mercator -o 49.25 -106 180
An equatorial map of the earth centered on New York. The pole of the map is placed 90Β° away (40.75+49.25=90) on the other side of the earth. A 180Β° twist around the pole of the map arranges that the Prime Meridian of the map runs from the pole of the map over the North Pole to New York instead of down the back side of the earth. The same effect can be had from map mercator -o 130.75 74
πΊοΈ map albers 28 45 -l 20 50 60 130 -m states
A customary curved-latitude map of the United States.
πͺ map harrison 2 30 -l -90 90 120 240 -o 90 0 0
A fan view covering 60Β° on either side of the Date Line, as seen from one earth radius above the North Pole gazing at the earth's limb, which is 30Β° off vertical. The -o option overrides the default -o 90 0 180, which would rotate the scene to behind the observer.
π FILES π
/lib/map/[1-4]??β World Data Bank II, for-f/lib/map/*β maps for-m/lib/map/*.xβ map indexesmapdβ Map driver program
π SOURCE π
/src/cmd/map
π₯ SEE ALSO π₯
Go peek at map(7) and plot(1), bestie.
π DIAGNOSTICS π
If you seeMap seems to be empty, thatβs the diagnostic being brutally honest: a coarse survey found zero extent within the-land-wbounds. For maps of limited extent, the grid resolution,res, or the limits may have to be refined.
π BUGS π
- Windows (option
-w) cannot cross the Date Line. - No borders appear along edges arising from visibility limits.
- Segments that cross a border are dropped, not clipped.
- Excessively large scale or
-dsetting may cause long line segments to be dropped. maptries to draw grid lines dotted and-ttracks dot-dashed. As very few plotting filters properly support curved textured lines, these lines are likely to appear solid.- The west-longitude-positive convention betrays Yankee chauvinism.
- Gilbert should be a map from sphere to sphere, independent of the mapping from sphere to plane.
Thatβs the whole MAP(1) saga, bestie β the source/version and date are chillinβ in the footer, so go say hi to them for me πβ¨
π¦ 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