kopia lustrzana https://github.com/OpenDroneMap/NodeODM
i10n changes
rodzic
04e924a62f
commit
81059d24b9
|
@ -1,5 +1,9 @@
|
||||||
# Migration Guide
|
# Migration Guide
|
||||||
|
|
||||||
|
## From API version 2.1.1 to 2.1.2
|
||||||
|
|
||||||
|
* Minor breaking change: `help` strings from `/options` no longer substitute `%(default)s` and `%(choices)s` variables. Clients should do that by replacing the `default` and `domain` attributes before displaying them to the user. This is necessary for better localization support.
|
||||||
|
|
||||||
## From API version 1.x to 2.x
|
## From API version 1.x to 2.x
|
||||||
|
|
||||||
* `skipPostProcessing` parameter in `/task/new` and `/task/new/init` no longer processes 2D tiles via gdal2tiles.py. So the `orthophoto_tiles`, `dsm_tiles` and `dtm_tiles` directories are no longer being generated by NodeODM. Engines can provide such folders if needed and will be included in the output archive. With ODM you can now use the `--tiles` parameter to generate the tiles.
|
* `skipPostProcessing` parameter in `/task/new` and `/task/new/init` no longer processes 2D tiles via gdal2tiles.py. So the `orthophoto_tiles`, `dsm_tiles` and `dtm_tiles` directories are no longer being generated by NodeODM. Engines can provide such folders if needed and will be included in the output archive. With ODM you can now use the `--tiles` parameter to generate the tiles.
|
||||||
|
|
|
@ -141,11 +141,6 @@ module.exports = {
|
||||||
if (domain.indexOf(value) === -1) domain.unshift(value);
|
if (domain.indexOf(value) === -1) domain.unshift(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
const choicesStr = Array.isArray(domain) ? domain.join(", ") : domain;
|
|
||||||
|
|
||||||
help = help.replace(/\%\(choices\)s/g, choicesStr);
|
|
||||||
help = help.replace(/\%\(default\)s/g, value);
|
|
||||||
|
|
||||||
odmOptions.push({
|
odmOptions.push({
|
||||||
name, type, value, domain, help
|
name, type, value, domain, help
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "NodeODM",
|
"name": "NodeODM",
|
||||||
"version": "2.1.1",
|
"version": "2.1.2",
|
||||||
"description": "REST API to access ODM",
|
"description": "REST API to access ODM",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
Ładowanie…
Reference in New Issue