Forum

Author Topic: DEM export image format  (Read 4330 times)

PAPA2137

  • Newbie
  • *
  • Posts: 8
    • View Profile
DEM export image format
« on: February 28, 2018, 04:47:08 PM »
While attempting to export DEM in format other than TIFF my script fails. As doc's states (for ver. 1.3.3) there are plenty of available formats for DEM export, but these formats are not available while exporting from GUI. Are there any limitations of DEM export not speficied in doc's?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15171
    • View Profile
Re: DEM export image format
« Reply #1 on: February 28, 2018, 04:51:40 PM »
Hello PAPA2137,

Can you please provide the code line that you are using for the DEM export? Also specify, which formats you are interested in?
Best regards,
Alexey Pasumansky,
Agisoft LLC

PAPA2137

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: DEM export image format
« Reply #2 on: February 28, 2018, 05:17:24 PM »
Code: [Select]
chunk.exportDem(path = "D:\OUT2\outputs\DEM_2018_02_28_15_14_48.jpeg",
image_format = PhotoScan.ImageFormat.ImageFormatJPEG,
raster_transform = PhotoScan.RasterTransformType.RasterTransformNone,
projection = chunk.crs,
nodata = -32767,
write_kml = True,
write_world = True,
write_scheme = True,
tiff_big = False)
And the error that is not appearing only with  ImageFormatTIFF
Code: [Select]
generating 942 x 641 raster in 1 x 1 tiles
Can't save file:D:\OUT2\outputs\DEM_2018_02_28_15_14_48.jpeg
« Last Edit: February 28, 2018, 05:23:13 PM by PAPA2137 »

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15171
    • View Profile
Re: DEM export image format
« Reply #3 on: March 06, 2018, 09:57:51 PM »
Hello PAPA2137,

If you wish to save the DEM in RGB mode, like it is shown in the Ortho view mode of PhotoScan window, you should alter raster transform parameter in the export:
Code: [Select]
raster_transform = PhotoScan.RasterTransformType.RasterTransformPaletteAt least it works as expected in 1.4 version.
Best regards,
Alexey Pasumansky,
Agisoft LLC