kopia lustrzana https://github.com/OpenDroneMap/NodeODM
images.json download path, URL changes
rodzic
a1f4981788
commit
354bb9c591
|
@ -8,7 +8,7 @@ REST API to access OpenDroneMap
|
|||
|
||||
=== Version information
|
||||
[%hardbreaks]
|
||||
_Version_ : 1.2.0
|
||||
_Version_ : 1.2.1
|
||||
|
||||
|
||||
=== Contact information
|
||||
|
@ -281,7 +281,7 @@ Retrieves an asset (the output of OpenDroneMap's processing) associated with a t
|
|||
|===
|
||||
|Type|Name|Description|Schema|Default
|
||||
|*Path*|*asset* +
|
||||
_required_|Type of asset to download. Use "all.zip" for zip file containing all assets.|enum (all.zip, orthophoto.tif)|
|
||||
_required_|Type of asset to download. Use "all.zip" for zip file containing all assets.|enum (all.zip, orthophoto.tif, images.json)|
|
||||
|*Path*|*uuid* +
|
||||
_required_|UUID of the task|string|
|
||||
|*Query*|*token* +
|
||||
|
|
File diff suppressed because one or more lines are too long
1
index.js
1
index.js
|
@ -419,6 +419,7 @@ app.get('/task/:uuid/output', authCheck, getTaskFromUuid, (req, res) => {
|
|||
* enum:
|
||||
* - all.zip
|
||||
* - orthophoto.tif
|
||||
* - images.json
|
||||
* -
|
||||
* name: token
|
||||
* in: query
|
||||
|
|
10
libs/Task.js
10
libs/Task.js
|
@ -131,8 +131,14 @@ module.exports = class Task{
|
|||
else filename = path.join('..', '..', 'processing_results', 'odm_orthophoto', `odm_${filename}`);
|
||||
}else{
|
||||
filename = path.join('odm_orthophoto', `odm_${filename}`);
|
||||
}
|
||||
}else{
|
||||
}
|
||||
}else if (filename == 'images.json'){
|
||||
if (config.test){
|
||||
filename = path.join('..', '..', 'processing_results', 'images.json');
|
||||
}else{
|
||||
// OK, do nothing
|
||||
}
|
||||
}else{
|
||||
return false; // Invalid
|
||||
}
|
||||
|
||||
|
|
10
package.json
10
package.json
|
@ -1,14 +1,14 @@
|
|||
{
|
||||
"name": "node-opendronemap",
|
||||
"version": "1.2.0",
|
||||
"description": "REST API to access OpenDroneMap",
|
||||
"version": "1.2.1",
|
||||
"description": "REST API to access ODM",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/pierotofy/node-OpenDroneMap.git"
|
||||
"url": "git+https://github.com/OpenDroneMap/NodeODM.git"
|
||||
},
|
||||
"keywords": [
|
||||
"opendronemap"
|
||||
|
@ -16,9 +16,9 @@
|
|||
"author": "Piero Toffanin",
|
||||
"license": "GPL-3.0",
|
||||
"bugs": {
|
||||
"url": "https://github.com/pierotofy/node-OpenDroneMap/issues"
|
||||
"url": "https://github.com/OpenDroneMap/NodeODM/issues"
|
||||
},
|
||||
"homepage": "https://github.com/pierotofy/node-OpenDroneMap#readme",
|
||||
"homepage": "https://github.com/OpenDroneMap/NodeODM#readme",
|
||||
"dependencies": {
|
||||
"archiver": "^1.0.0",
|
||||
"async": "^2.6.1",
|
||||
|
|
Ładowanie…
Reference in New Issue