Closed jfoclpf closed 3 years ago
It looks like our documentation is out of date. The correct code should be (note the require change):
const GeoPackageAPI = require('@ngageoint/geopackage').GeoPackageAPI
GeoPackageAPI.open(path.join('res', 'Cont_AAD_CAOP2020.gpkg'), function(err, geoPackage) {
console.log(geoPackage)
})
Thanks, then I would suggest you to update documentation ;)
@jfoclpf PRs are always welcome.
When I simply run in nodejs 14.16.1 and after
npm install @ngageoint/geopackage
I get this error