magnacarto/vendor/github.com/omniscale/go-mapnik/v2
2024-01-24 16:32:49 +01:00
..
.gitignore build: update vendored libs 2019-10-11 08:59:22 +02:00
go.mod build: update vendored libs 2019-10-11 08:59:22 +02:00
LICENSE build: update vendored libs 2019-10-11 08:59:22 +02:00
Makefile vendor: update dependencies 2024-01-24 16:32:49 +01:00
mapnik.go build: update vendored libs 2019-10-11 08:59:22 +02:00
mapnik_c_api.cpp build: update vendored libs 2019-10-11 08:59:22 +02:00
mapnik_c_api.h build: update vendored libs 2019-10-11 08:59:22 +02:00
README.md build: update vendored libs 2019-10-11 08:59:22 +02:00

go-mapnik

Description

Small wrapper for the Mapnik 3 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.

Installation

This package requires Mapnik (libmapnik-dev on Ubuntu/Debian, mapnik in Homebrew). Make sure mapnik-config is in your PATH.

You need to set the CGO_LDFLAGS and CGO_CXXFLAGS environment variables for successful compilation and linking with Mapnik. Refer to the Makefile how mapnik-config can be used to extract the required CGO_LDFLAGS and CGO_CXXFLAGS values. Use -ldflags to overwrite the default location of the input plugins and default fonts.

Documentation

API documentation can be found here: http://godoc.org/github.com/omniscale/go-mapnik

License

MIT, see LICENSE file.

Author

Oliver Tonnhofer, Omniscale

Thanks

This package is inspired/based on mapnik-c-api by Dane Springmeyer and go-mapnik by Fabian Wickborn.