fawick / go-mapnik

Go bindings for mapnik (http://www.mapnik.org or http://github.com/mapnik/mapnik)
BSD 3-Clause "New" or "Revised" License
60 stars 18 forks source link

Plans to support vector tiles? #11

Open ARolek opened 8 years ago

ARolek commented 8 years ago

This is a great looking project, and the tileserver is nice addition. I noticed it supports .png tiles as of now. Any plans to support mapbox vector tiles?

fawick commented 8 years ago

Sorry for the late reply. Currently I have no plans for adding vector tiles. I'd be happy to review and merge any PRs for that, however.

ARolek commented 8 years ago

Got it. I have been doing a lot of research into mapbox vector tiles, and there are a few go packages that can help with the process. If I find that it makes sense to include the end to end solution in this package I will submit a PR. Happy New Year!

fawick commented 8 years ago

There is a fork[1] of a fork (well, sort of)[2] of my package that adds vector tile capability. Maybe that package can help you out. The vector tile implementation in [1] is currently an open PR for [2]: https://github.com/omniscale/go-mapnik/pull/5

I'd love to consolidate with [1] and [2](i.e., basically remove my own mapnik package and refactor my maptiles to use [1] and [2]) if only I could find the time. @omniscale (@olt) and @strava (@mlerner) have done good work advancing the go-mapnik package.

[1] https://github.com/strava/go-mapnik [2] https://github.com/omniscale/go-mapnik

ARolek commented 8 years ago

This is great! I agree it would make sense to combine these efforts. Vector tiles seem to be the overall direction of web mapping. It would be amazing to have a Go project with MVT support. Thank you for bringing this to my attention.

I have been researching how to generate vector tiles from PostGIS and it appears some (helper functions)[https://www.mapbox.com/help/postgis-manual/] need to be installed in order to generate the tiles. I'm not too familiar with the C lib the aforementioned pull request utilizes, but I wonder if PostGIS backed data sources will need the additional functions or if the mapnik implementation handles this.