nik4(1)
β¨ nik4(1) β¨
okay bestie, gather round, because this is the nik4 manual page and it's literally the cutest little tile-aware Mapnik image renderer you'll ever meet π (yes the manual name is just nik4(1), we love a lowercase icon)
πΈ NAME πΈ
nik4 β Tile-aware Mapnik image renderer
π¦ SYNOPSIS π¦
nik4 [-h] [--version] [-z ZOOM] [-p PPI] [--factor FACTOR] [-s SCALE]
[-b Xmin Ymin Xmax Ymax] [-a PAPER] [-d W H] [-x W H] [--norotate]
[-m MARGIN] [-c X Y] [--fit FIT] [--padding PADDING] [--layers
LAYERS] [--add-layers ADD_LAYERS] [--hide-layers HIDE_LAYERS]
[--url URL] [--ozi OZI] [--wld WLD] [-t
{1,2,3,4,5,6,7,8,9,10,11,12}] [--just-tiles] [-v] [-f FMT] [--base
BASE] [--vars [VARS [VARS ...]]] [--fonts [FONTS [FONTS ...]]]
style output
π DESCRIPTION π
so nik4 is a Python script that generates images with Mapnik. that's the whole vibe. it makes pictures. from map styles. slay. π
π OPTIONS π
π Positional arguments:
styleβ the Style file for Mapnik, aka the glow-up blueprint πoutputβ the Resulting image file, aka where the masterpiece lands πΌοΈ
π§ Optional arguments:
-h,--helpβ Show usage information and exit (your little helper angel π«Ά)--versionβ Show program's version number and exit-z ZOOM,--zoom ZOOMβ Target zoom level π-p PPI,--ppi PPI,--dpi PPIβ Pixels per inch (alternative to scale) β three names, one queen β¨--factor FACTORβ Scale factor (affects ppi, default=1)-s SCALE,--scale SCALEβ Scale as in 1:100000 (specifying ppi is recommended) π-b Xmin Ymin Xmax Ymax,--bbox Xmin Ymin Xmax Ymaxβ Bounding box π¦-a PAPER,--paper PAPERβ Paper format:-a +4for landscape A4,-a -4for portrait A4,-a letterfor autorotated US Letter π-d W H,--size W Hβ Target dimensions in mm (one 0 allowed)-x W H,--size-px W Hβ Target dimensions in pixels (one 0 allowed) π--norotateβ Do not swap width and height for bbox π«π-m MARGIN,--margin MARGINβ Amount in mm to reduce paper size-c X Y,--center X Yβ Center of an image π―--fit FITβ Fit layers in the map, comma-separated--padding PADDINGβ Margin for layers in--fit(default=5), mm--layers LAYERSβ Map layers to render, comma-separated ποΈ--add-layers ADD_LAYERSβ Map layers to include, comma-separated β--hide-layers HIDE_LAYERSβ Map layers to hide, comma-separated π--url URLβ URL of a map to center on π--ozi OZIβ Generate ozi map file--wld WLDβ Generate world file π-t {1,2,3,4,5,6,7,8,9,10,11,12},--tiles {1,2,3,4,5,6,7,8,9,10,11,12}β Write NΓN tiles, then join using ImageMagick π§©--just-tilesβ Do not join tiles, instead write ozi/wld file for each-v,--debugβ Display calculated values (the math reveal moment π₯)-f FMT,--format FMTβ Target file format (by default looks at extension)--base BASEβ Base path for style file, in case it's piped to STDIN π°--vars [VARS [VARS ...]]β List of variables (name=value) to substitute in style file (use${name:default})--fonts [FONTS [FONTS ...]]β List of full path to directories containing fonts π€
bestie reminder: keep those option names exactly as written, no cap, the shell does not accept vibes-based spelling π
and that's the whole page, mwah π β this manual page dropped on 01 April 2025, it's the nik4(1) page, and it ate, no crumbs left, periodt π
β¨
π¦ where this page comes from
- debian trixie: nik4 1.8-2 Β· WTFPL
- ubuntu questing: nik4 1.8-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms