yocontra / node-gdal-next

Node.js bindings for GDAL (Geospatial Data Abstraction Library) [Fork]
https://contra.io/node-gdal-next/
Apache License 2.0
75 stars 35 forks source link

--debug builds crash when executing the unit tests #26

Closed mmomtchev closed 3 years ago

mmomtchev commented 3 years ago

The --debug builds, at least with g++ 8, crash with a segfault while doing the unit tests

This test is the culprit:

const gdal = require('../node-gdal-next')

const src = gdal.open(`sample.tif`)

const options = {
    src: src,
    s_srs: src.srs,
    t_srs: gdal.SpatialReference.fromEPSG(4326),
    cutline: new gdal.LineString()
}
const info = gdal.suggestedWarpOutput(options)

options.dst = gdal.open(
    'temp',
    'w',
    'MEM',
    info.rasterSize.x,
    info.rasterSize.y,
    1,
    gdal.GDT_Byte
)
options.dst.geoTransform = info.geoTransform

gdal.reprojectImage(options)
mmomtchev commented 3 years ago

osgeo/gdal#3037

mmomtchev commented 3 years ago

Confirmed fixed after GDAL upgrade to 3.2.0