Small wrapper for the Mapnik API to render beautiful maps from Go.
Features:
- Render to
[]byte
,image.Image
, or file. - Set scale denominator or scale factor.
- Enable/disable single layers.
This package can be installed with the go get command. The following steps need to be performed in order. go generate
will setup your environment and needs to be run prior to installing the package:
go get -d github.com/omniscale/go-mapnik
go generate github.com/omniscale/go-mapnik
go install github.com/omniscale/go-mapnik
This package requires Mapnik (libmapnik-dev
on Ubuntu/Debian, mapnik --with-postgresql
in Homebrew).
Make sure mapnik-config
is in your PATH
.
API documentation can be found here: http://godoc.org/github.com/omniscale/go-mapnik
MIT, see LICENSE file.
Oliver Tonnhofer, Omniscale
This package is inspired/based on mapnik-c-api
by Dane Springmeyer and go-mapnik
by Fabian Wickborn.