kopia lustrzana https://github.com/OpenDroneMap/NodeODM
Fixed typos
rodzic
5a91ec4d76
commit
dda3117263
|
@ -301,7 +301,7 @@ module.exports = class Task{
|
||||||
outputDir: path.join(this.getProjectFolderPath(), outputDir)
|
outputDir: path.join(this.getProjectFolderPath(), outputDir)
|
||||||
}, (err, code, signal) => {
|
}, (err, code, signal) => {
|
||||||
if (err) done(err);
|
if (err) done(err);
|
||||||
}else{
|
else{
|
||||||
// Don't evaluate if we caused the process to exit via SIGINT?
|
// Don't evaluate if we caused the process to exit via SIGINT?
|
||||||
if (code === 0) done();
|
if (code === 0) done();
|
||||||
else done(new Error(`Process exited with code ${code}`));
|
else done(new Error(`Process exited with code ${code}`));
|
||||||
|
@ -315,7 +315,7 @@ module.exports = class Task{
|
||||||
// All paths are relative to the project directory (./data/<uuid>/)
|
// All paths are relative to the project directory (./data/<uuid>/)
|
||||||
async.series([
|
async.series([
|
||||||
generateTiles(path.join('odm_orthophoto', 'odm_orthophoto.tif'), 'orthophoto_tiles'),
|
generateTiles(path.join('odm_orthophoto', 'odm_orthophoto.tif'), 'orthophoto_tiles'),
|
||||||
createZipArchive('all.zip', ['odm_orthophoto', 'odm_georeferencing', 'odm_texturing', 'odm_meshing']),
|
createZipArchive('all.zip', ['odm_orthophoto', 'odm_georeferencing', 'odm_texturing', 'odm_meshing', 'orthophoto_tiles']),
|
||||||
createZipArchive('georeferenced_model.ply.zip', [path.join('odm_georeferencing', 'odm_georeferenced_model.ply')]),
|
createZipArchive('georeferenced_model.ply.zip', [path.join('odm_georeferencing', 'odm_georeferenced_model.ply')]),
|
||||||
createZipArchive('georeferenced_model.las.zip', [path.join('odm_georeferencing', 'odm_georeferenced_model.ply.las')]),
|
createZipArchive('georeferenced_model.las.zip', [path.join('odm_georeferencing', 'odm_georeferenced_model.ply.las')]),
|
||||||
createZipArchive('georeferenced_model.csv.zip', [path.join('odm_georeferencing', 'odm_georeferenced_model.csv')]),
|
createZipArchive('georeferenced_model.csv.zip', [path.join('odm_georeferencing', 'odm_georeferenced_model.csv')]),
|
||||||
|
|
|
@ -32,8 +32,8 @@ module.exports = {
|
||||||
|
|
||||||
let command = ["-z", options.zoomLevels,
|
let command = ["-z", options.zoomLevels,
|
||||||
"-n",
|
"-n",
|
||||||
fs.realpathSync(options.inputFile),
|
options.inputFile,
|
||||||
fs.realpathSync(option.outputDir)
|
options.outputDir
|
||||||
];
|
];
|
||||||
logger.info(`About to run: gdal2tiles.py ${command.join(" ")}`);
|
logger.info(`About to run: gdal2tiles.py ${command.join(" ")}`);
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ module.exports = {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Launch
|
// Launch
|
||||||
let childProcess = spawn("gdal2tiles.py", command, {cwd: config.odm_path});
|
let childProcess = spawn("gdal2tiles.py", command);
|
||||||
|
|
||||||
childProcess
|
childProcess
|
||||||
.on('exit', (code, signal) => done(null, code, signal))
|
.on('exit', (code, signal) => done(null, code, signal))
|
||||||
|
|
Ładowanie…
Reference in New Issue