Skip to content

Latest commit

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

node-pgtiles

PostgreSQL schema for vector tiles. Modeled from Mapbox mbtiles and CartoDB postgresql extensions

Dependencies

Install

$ npm install pgtiles

Use

varpgtiles=require('pgtiles');varconnectionString='postgres://username:password@host:dbname/5432';vartileSchema=pgtiles(connectionString);// Add the table schema and functions to the designated PostgreSQL databasetileSchema.create(function(err,result){if(err){// handle error}console.log(result);// Result show the tables and functions created});// Remove the tables and functions to rollback the databasetileSchema.rollback(function(err,result){if(err){// handle error}console.log(result);// Result show the tables and functions dropped});

Andy B

About

PostgreSQL schema for vector tiles. Modeled from Mapbox mbtiles and CartoDB postgresql extensions

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages