[GIS] geojson to mapbox vector tile in nodejs

geojsonmapbox-gl-jsnode-jsvector-tiles

I'm looking for a way to transform geoJson (obtained from a query to potsgis) to mapbox vector format, serverside in nodejs, without using mapnik (I dont have access to the server and therefore cannot use mapnik, as it needs certain specific versions as seen here https://github.com/mapnik/node-mapnik/wiki/Troubleshooting)

Is there any libraries allowing to do that ?

Best Answer

I ended up using those two packages : https://github.com/mapbox/geojson-vt (for getting a tile from geojson) and https://github.com/mapbox/vt-pbf (for transforming this tile into pbf)

I made a quick module from that (maybe not ready for production use, but hey, it is a good start) : https://github.com/philippeauriach/vector-tiles-generator