nik4(1)

πŸ“¦
version 1.8 Β· 3 versions
, in debian trixie, ubuntu questing

✨ 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 +4 for landscape A4, -a -4 for portrait A4, -a letter for 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