macOS
brew install mapniklocal Homebrew formula metadata
sudo port install mapnikMacPorts ports tree · gis/mapnik/Portfile · 来源: api.github.com
安装
brew install mapniklocal Homebrew formula metadata
sudo port install mapnikMacPorts ports tree · gis/mapnik/Portfile · 来源: api.github.com
sudo apk add mapnikAlpine Linux edge package indexes · mapnik · 来源: dl-cdn.alpinelinux.org
sudo dnf install mapnikFedora Rawhide package metadata · mapnik · 来源: dl.fedoraproject.org
nix profile install nixpkgs#mapniknixpkgs package indexes · pkgs/by-name/ma/mapnik/package.nix · 来源: api.github.com
sudo pacman -S mapnikArch Linux sync databases · mapnik · 来源: geo.mirror.pkgbuild.com
sudo apt install libmapnik-devDebian stable package indexes · libmapnik-dev · 来源: deb.debian.org
概览
Toolkit for developing mapping applications
历史
Mapnik is an open-source C++ toolkit for high-quality map rendering, exposed to package users through command-line tools and language bindings for Python, Node.js, and C++.
The Mapnik documentation history says Artem Pavlenko started the project in 2005. Early project news records show public activity and releases in 2005, including a BerliOS development move, early release notes, and continued 0.x releases through 2006 and 2007.
Mapnik grew around the idea that cartographic rendering should be programmable and high quality. The official docs emphasize use of established libraries such as Boost rather than reinventing common C++ infrastructure, while the homepage presents Mapnik as a core geospatial visualization and processing project.
By the 4.x era, Mapnik had a long-running release stream: the official site listed 4.2.0 in December 2025, 4.2.1 in January 2026, and 4.2.2 in March 2026. That longevity matters because many renderer packages disappear once their bindings or compiler stack age; Mapnik kept moving across several generations of C++, Python, and Node packaging.
Mapnik became a common dependency in geospatial packaging because it is a library and toolkit rather than a single end-user app. The input package metadata lists packages in Homebrew, Debian, Ubuntu, Fedora, Arch, MacPorts, Nix, and Alpine, reflecting broad distribution across Unix-like systems.
Its official homepage advertises direct code examples in Python, Node.js, and C++, which explains why package managers often split Mapnik into libraries, development headers, data plugins, and CLI utilities. The same native renderer can be embedded in applications or invoked through tools like mapnik-render and shapeindex.
A typical Mapnik workflow defines map styling and data sources, loads a stylesheet or constructs the map programmatically, and renders image output. The homepage examples show creating a map, loading a style file, zooming to data, and rendering to PNG from Python and Node.js.
Homebrew exposes practical command-line utilities such as mapnik-render, mapnik-index, shapeindex, svg2png, pgsql2sqlite, and geometry_to_wkb. For package users, that makes Mapnik useful both as a dependency for larger map stacks and as a toolbox for testing styles and geospatial assets.
Mapnik is significant because it sits at the uncomfortable but important intersection of C++ ABI compatibility, geospatial native dependencies, scripting-language bindings, and cartographic output quality. It is the sort of package that stresses formula maintenance more than its simple description suggests.
For package historians, Mapnik also marks the era when open-source web cartography moved from server-generated raster maps toward programmable rendering engines backed by reusable geospatial libraries.
安全态势
没有找到 mapnik 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
geometry_to_wkb | cli | 全局可执行文件 | |
mapnik-index | cli | 全局可执行文件 | |
mapnik-render | cli | 全局可执行文件 | |
pgsql2sqlite | cli | 全局可执行文件 | |
shapeindex | cli | 全局可执行文件 | |
svg2png | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/mapnik/mapnik
安装元数据
| 软件包键 | brew:mapnik |
|---|---|
| 版本 | 4.2.2 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/mapnik |
| 主页 | https://mapnik.org/ |
| 仓库 | https://github.com/mapnik/mapnik |
| 上游文档 | https://github.com/mapnik/mapnik/wiki |
| 许可证 | LGPL-2.1-or-later |
| 源码归档 | https://github.com/mapnik/mapnik/releases/download/v4.2.2/mapnik-v4.2.2.tar.bz2 |
| 最后更新 | 2026-05-09T14:00:18Z |
| Pulse | updated |
| 依赖 | boost, cairo, freetype, gdal, harfbuzz, icu4c@78, jpeg-turbo, libavif, libpng, libpq, libtiff, libxml2, openssl@3, proj, protozero, sqlite, webp |
| 构建依赖 | cmake, pkgconf |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | mapnik |
| Version Scheme | 0 |
| Revision | 1 |
| Head Version | HEAD |
| Conflicts With |
|
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
libmapnik-dev 4.0.7+ds-1
C++ toolkit for developing GIS applications (devel)
sudo apt install libmapnik-devlibmapnik4.0 4.0.7+ds-1
C++ toolkit for developing GIS applications (libraries)
sudo apt install libmapnik4.0mapnik-doc 4.0.7+ds-1
C++ toolkit for developing GIS applications (doc)
sudo apt install mapnik-docmapnik-utils 4.0.7+ds-1
C++ toolkit for developing GIS applications (utilities)
sudo apt install mapnik-utilsmapnik
nix profile install nixpkgs#mapniklibmapnik-dev 3.1.0+ds-7ubuntu2
C++ toolkit for developing GIS applications (devel)
sudo apt install libmapnik-devlibmapnik3.1t64 3.1.0+ds-7ubuntu2
C++ toolkit for developing GIS applications (libraries)
sudo apt install libmapnik3.1t64mapnik-doc 3.1.0+ds-7ubuntu2
C++ toolkit for developing GIS applications (doc)
sudo apt install mapnik-docmapnik-utils 3.1.0+ds-7ubuntu2
C++ toolkit for developing GIS applications (utilities)
sudo apt install mapnik-utilsmapnik 4.1.4-r3
An open source toolkit for developing mapping applications
sudo apk add mapnikmapnik-dev 4.1.4-r3
Mapnik development files
sudo apk add mapnik-devmapnik-doc 4.1.4-r3
Mapnik documentation
sudo apk add mapnik-docmapnik 4.2.2-2.fc45
Free Toolkit for developing mapping applications
sudo dnf install mapnikmapnik-demo 4.2.2-2.fc45
Demo utility and some sample data distributed with mapnik
sudo dnf install mapnik-demomapnik-devel 4.2.2-2.fc45
Mapnik is a Free toolkit for developing mapping applications
sudo dnf install mapnik-develmapnik-static 4.2.2-2.fc45
Static libraries for the Mapnik spatial visualization library
sudo dnf install mapnik-static来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.