logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

nik4 - Tile-aware Mapnik image renderer

Description

nik4 is a Python script to generate images with Mapnik.

Name

       nik4 - Tile-aware Mapnik image renderer

Options

       Positional arguments:

       style  Style file for Mapnik

       output Resulting image file

       Optional arguments:

       -h, --help
              Show usage information and exit

       --version
              Show program's version number and exit

       -zZOOM, --zoomZOOM
              Target zoom level

       -pPPI, --ppiPPI, --dpiPPI
              Pixels per inch (alternative to scale)

       --factorFACTOR
              Scale factor (affects ppi, default=1)

       -sSCALE, --scaleSCALE
              Scale as in 1:100000 (specifying ppi is recommended)

       -bXminYminXmaxYmax, --bboxXminYminXmaxYmax
              Bounding box

       -aPAPER, --paperPAPER
              Paper format: -a +4 for landscape A4, -a -4 for portrait A4, -a letter for autorotated US Letter

       -dWH, --sizeWH
              Target dimensions in mm (one 0 allowed)

       -xWH, --size-pxWH
              Target dimensions in pixels (one 0 allowed)

       --norotate
              Do not swap width and height for bbox

       -mMARGIN, --marginMARGIN
              Amount in mm to reduce paper size

       -cXY, --centerXY
              Center of an image

       --fitFIT
              Fit layers in the map, comma-separated

       --paddingPADDING
              Margin for layers in --fit (default=5), mm

       --layersLAYERS
              Map layers to render, comma-separated

       --add-layersADD_LAYERS
              Map layers to include, comma-separated

       --hide-layersHIDE_LAYERS
              Map layers to hide, comma-separated

       --urlURL
              URL of a map to center on

       --oziOZI
              Generate ozi map file

       --wldWLD
              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

       -fFMT, --formatFMT
              Target file format (by default looks at extension)

       --baseBASE
              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

                                                03 December 2024                                         nik4(1)

Synopsis

nik4 [-h] [--version] [-zZOOM] [-pPPI] [--factorFACTOR] [-sSCALE] [-bXminYminXmaxYmax] [-aPAPER]
            [-dWH] [-xWH] [--norotate] [-mMARGIN] [-cXY] [--fitFIT] [--paddingPADDING] [--layersLAYERS] [--add-layersADD_LAYERS] [--hide-layersHIDE_LAYERS] [--urlURL] [--oziOZI] [--wldWLD]
            [-t{1,2,3,4,5,6,7,8,9,10,11,12}] [--just-tiles] [-v] [-fFMT] [--baseBASE] [--vars[VARS[VARS...]]] [--fonts[FONTS[FONTS...]]] styleoutput

See Also