Skip to content
This repository has been archived by the owner on Feb 14, 2023. It is now read-only.

strava/go-mapnik

 
 

Repository files navigation

go-mapnik

Description

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.

Installation

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.

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.

Releases

No releases published

Packages

No packages published

Languages

  • Go 47.9%
  • C++ 38.8%
  • C 9.9%
  • Shell 3.4%