pto_gen does not set the projection specified.
For example: if I do
pto_gen --projection=0 project.pto *.tif
I would expect the projection to be rectilinear (p f0 on the .pto file).
But when I open the project in hugin the stitch projection is set to equirectangular (p f2 on the .pto file).
Only if I manually edit the project to be rectilinear and save, the file will be set with the correct projection.
I tried --projection=0 and -p 0 but I get the same results, and also tried other projections and the -p flag seems to be ignored completely, and the resulting project is always set to equirectangular
The same thing happens when I merge projects using pto_merge. to merge several projects (all set to rectilinear projection). The resulting merged file will be set to equirectangular.
I've been manually changing the project's projection using sed for scripts, but I believe this could be avoided.
Is the equirectangular projection set as default somewhere that I can edit and return to the expected rectilinear projection?
I'm using hugin on Linux Mint
Operating System: Linux 5.4.0-113-generic x86_64
Architecture: 64 bit
Free memory: 23720368 kiB
Hugin
Version: 2021.0.0.52df0f76c700
Path to resources: /usr/share/hugin/xrc/
Path to data: /usr/share/hugin/data/
Multi-threading using C++11 std::thread and OpenMP
Monitor profile: 24M45 #2 2022-06-03 17-49 120cdm2 2.2 F-S XYZLUT+MTX
Libraries
wxWidgets: wxWidgets 3.0.4
wxWidgets Library (wxGTK port)
Version 3.0.4 (Unicode: wchar_t, debug level: 1),
Runtime version of toolkit used is 3.24.
Compile-time GTK+ version is 3.24.14.
libpano13: 2.9.19
Boost: 1.71.0
Exiv2: 0.27.2
SQLite3: 3.31.1
Vigra: 1.11.1
LittleCMS2: 2.9