Skip to content

Instantly share code, notes, and snippets.

@kapouer
Created October 13, 2014 18:16
Show Gist options
  • Save kapouer/566615bbb9929e99d765 to your computer and use it in GitHub Desktop.
Save kapouer/566615bbb9929e99d765 to your computer and use it in GitHub Desktop.
ogr2ogr no error but error
var ogr2ogr = require('../')
var sampleNogeom = __dirname+'/samples/sample-nogeom.csv'
// createdb|dropdb nogeomtest
ogr2ogr(sampleNogeom)
.format("PostgreSQL")
.project("EPSG:4326")
.destination('PG:dbname=nogeomtest')
.exec(function(err, data) {
console.error("missing error", err);
// check that indeed, no table was created/populated in database nogeomtest
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment