Skip to content

Instantly share code, notes, and snippets.

View nextstopsun's full-sized avatar

Nikolai Lebedev nextstopsun

View GitHub Profile
@nextstopsun
nextstopsun / index.js
Last active February 6, 2018 10:44 — forked from stepankuzmin/index.js
PostGIS ST_AsMVT JSONB properties encoding bug
const fs = require("fs");
const geobuf = require("geobuf");
const Protobuf = require("pbf");
const pgp = require("pg-promise")();
const vt = require("vector-tile");
const db = pgp(process.env.DATABASE_URL);
const tile_with_properties_as_jsonb = `WITH data (id, num1, num2, geom) AS (
VALUES