Closed warrenwyf closed 3 years ago
@warrenwyf Can you post the code and the file that reproduces the issue?
@warrenwyf Can you post the code and the file that reproduces the issue?
const gdal = require('gdal-next');
const srcDataset = gdal.open(require.resolve('./points.gpkg'));
const layer = srcDataset.layers.get(0);
let feature,
count = 0;
while (feature = layer.features.next()) {
count++;
const obj = { geom: feature.getGeometry().toWKB() };
obj['name'] = feature.fields.get('name');
obj['blob'] = feature.fields.get('blob');
console.log(obj);
}
console.log(count);
Unzip the attachment, save the script, and run it.
What I got:
@warrenwyf Thanks - seems pretty straightforward, I'll put this on my TODO list and try to look into it this weekend or at the start of next week.
I am tring to read a vector layer from geopackage data which has a blob field.
After reading several rows nodejs throw errors like this:
When ignore the blob field, everything is ok.