Hi Alexey,
Firstly a correction on my behalf I'm using V 1.3.1 (Build 4030). I can't easily upgrade to 1.3.4 as I run photoscan pro on a remote system without root access.
A more detailed example of the code I'm running is:
if forceGeoRef: PhotoScan.app.document.chunk.transform.matrix = PhotoScan.app.document.chunk.transform.matrix
DEMFile = "%s/DEM.xyz" %resultsFolder
if exportDEM:
DEMregion = (math.floor(chunk.elevation.left),math.floor(chunk.elevation.bottom),math.ceil(chunk.elevation.right),math.ceil(chunk.elevation.top))
DEMres = math.ceil(100*chunk.elevation.resolution)/100.0
chunk.exportDem(path=DEMFile, format=PhotoScan.RasterFormat.RasterFormatXYZ, projection = chunk.crs, region = DEMregion, dx = DEMres, dy = DEMres)
With various inputs I get the following errors:
RuntimeError: Unsupported raster transform
RuntimeError: Unsupported extension: .xyz
RuntimeError: Unsupported datum transformation
See consol dump below for more details...
I haven't checked rigorously but it doesn't seem to matter whther I've generated the DEM planer or geographic.
Any thoughts would be much appreciated...
Kind Regards
Dave
16:30:18 Start photoscan working...
16:30:18
16:30:18 GETTING CHUNK
16:30:18
16:30:18 ExportRaster
16:30:18 Finished processing in 9.5e-05 sec (exit code 0)
16:30:18 Traceback (most recent call last):
16:30:18 File "/panfs/panasas01/ifac/jf13928/JOBS/171130_162506/settings/testing_002.py", line 56, in <module>
16:30:18 chunk.exportDem(path=DEMFile, format=PhotoScan.RasterFormat.RasterFormatTiles, projection = chunk.crs, region = DEMregion, dx = DEMres, dy = DEMres)
16:30:18 RuntimeError: Unsupported extension: .xyz
16:31:20 Start photoscan working...
16:31:20
16:31:20 GETTING CHUNK
16:31:20
16:31:20 ExportRaster
16:31:20 Exporting elevation model...
16:31:21 Finished processing in 0.000194 sec (exit code 0)
16:31:21 Traceback (most recent call last):
16:31:21 File "/panfs/panasas01/ifac/jf13928/JOBS/171130_162506/settings/testing_002.py", line 56, in <module>
16:31:21 chunk.exportDem(path=DEMFile, format=PhotoScan.RasterFormat.RasterFormatXYZ, projection = chunk.crs, region = DEMregion, dx = DEMres, dy = DEMres)
16:31:21 RuntimeError: Unsupported raster transform
16:32:14 Start photoscan working...
16:32:14
16:32:14 GETTING CHUNK
16:32:14
16:32:14 ExportRaster
16:32:14 Exporting elevation model...
16:32:15 Finished processing in 0.009574 sec (exit code 0)
16:32:15 Traceback (most recent call last):
16:32:15 File "/panfs/panasas01/ifac/jf13928/JOBS/171130_162506/settings/testing_002.py", line 57, in <module>
16:32:15 chunk.exportDem(path=DEMFile, format=PhotoScan.RasterFormat.RasterFormatXYZ)
16:32:15 RuntimeError: Unsupported datum transformation
16:33:08 Start photoscan working...
16:33:08
16:33:08 GETTING CHUNK
16:33:08
16:33:08 ExportRaster
16:33:08 Finished processing in 9.2e-05 sec (exit code 0)
16:33:08 Traceback (most recent call last):
16:33:08 File "/panfs/panasas01/ifac/jf13928/JOBS/171130_162506/settings/testing_002.py", line 57, in <module>
16:33:08 chunk.exportDem(path=DEMFile)
16:33:08 RuntimeError: Unsupported extension: .xyz
16:33:52 Start photoscan working...
16:33:52
16:33:52 GETTING CHUNK
16:33:52
16:33:52 ExportRaster
16:33:52 Finished processing in 9.6e-05 sec (exit code 0)
16:33:52 Traceback (most recent call last):
16:33:52 File "/panfs/panasas01/ifac/jf13928/JOBS/171130_162506/settings/testing_002.py", line 57, in <module>
16:33:52 chunk.exportDem(path=DEMFile)
16:33:52 RuntimeError: Unsupported extension: .xyz <--- checked for extension being case sensitive