Forum

Author Topic: Export orthomosaic with custom size  (Read 598 times)

vish

  • Newbie
  • *
  • Posts: 2
    • View Profile
Export orthomosaic with custom size
« on: June 29, 2021, 05:31:16 AM »
My orthomosaic is currently
Code: [Select]
25114 x 22819 and I want to export it such that it is only 5000 pixels wide, while maintaining scale.

I tried running
Code: [Select]
chunk.exportRaster(path="test.tif", width=5000) but it doesn't work and I get
Code: [Select]
RuntimeError: TIFFWriteTile: unexpected error: test.tif
I don't want to explicitly change pixel size as I don't know what size will get me a 5000 pixel wide orthomosaic. I know the GUI has an option 'Max. dimension (pix)'. Is there something similar I can do using the python API?