Browse Source

Use a cylindrical projection

Baptiste Jonglez 10 years ago
parent
commit
db61f97571
1 changed files with 2 additions and 1 deletions
  1. 2 1
      panorama/tasks.py

+ 2 - 1
panorama/tasks.py

@@ -19,7 +19,8 @@ def generate_tiles(*args, **kwargs):
 
 
 @shared_task
 @shared_task
 def pto_gen(output_pto, images):
 def pto_gen(output_pto, images):
-    subprocess.call(["pto_gen", "-o", output_pto] + images)
+    # Projection type 1 is cylindrical
+    subprocess.call(["pto_gen", "-p", "1", "-o", output_pto] + images)
     return output_pto
     return output_pto
 
 
 @shared_task
 @shared_task