ogr2ogr: Unknown Error
I see the following in my error log. Any ideas?
{
"message": "ENOENT: no such file or directory, scandir '/tmp/ogr_53c53644160'",
"stack": "Error: ENOENT: no such file or directory, scandir '/tmp/ogr_53c53644160'\n at module.exports.runLoopOnce (/home/onemap/services/node_modules/deasync/index.js:66:11)\n at module.exports (/home/onemap/services/node_modules/deasync-promise/index.js:13:9)\n at module.exports.interval (/home/onemap/services/node_modules/system-sleep/module.js:24:36)\n at Object.startup (/home/onemap/services/app.js:3790:13)\n at Object.<anonymous> (/home/onemap/services/bin/www:5:5)\n at Module._compile (module.js:652:30)\n at Object.Module._extensions..js (module.js:663:10)\n at Module.load (module.js:565:32)\n at tryModuleLoad (module.js:505:12)\n at Function.Module._load (module.js:497:3)",
"errno": -2,
"code": "ENOENT",
"syscall": "scandir",
"path": "/tmp/ogr_53c53644160",
"level": "error",
"timestamp": "2018-05-17T06:51:44.927Z"
}
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 24 (10 by maintainers)
@wavded @1Map using ogr2ogr CLI, transforming a single shp
throws an error containing:
If I run
an shx file is generated and the file is converted without problems.
I tried the same with this library doing:
and it works.
However, the coordinates are passed to the GeoJSON literally. If you chain
.project('EPSG:4326')it will complain that the source layer has no coordinate system.Bottomline is: if the extension is
shpappend["--config", "SHAPE_RESTORE_SHX", "YES"]to the arguments.