Forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - dave.smith

Pages: [1]
1
Python and Java API / ExportDEM as an XYZ file
« on: December 11, 2017, 05:35:35 PM »
Quick questoin that's been driving me crazy all weekend. From the GUI (V1.3.0) it's possible to export an elevation model as an *.xyz file that defines the surface on a grid as a series of readable points. In local coordinates a typical file output would look like this:

-4.5657   3.0712   -21.344
-4.1664   3.0712   -21.330
-4.1093   3.0712   -21.330
-4.0523   3.0712   -21.330
-3.5389   3.0712   -21.373
-3.4818   3.0712   -21.373 etc etc


However I can't work out how (if it's supported) to setup the exportDEM() function to achieve the same result.

The closest I get is:

2017-12-11 13:28:19 Traceback (most recent call last):
2017-12-11 13:28:19   File "/panfs/panasas01/ifac/jf13928/JOBS/171130_162506/settings/getDem_002.py", line 56, in <module>
2017-12-11 13:28:19     chunk.exportDem(path=DEMFile, format=PhotoScan.RasterFormat.RasterFormatXYZ, projection = chunk.crs, region = DEMregion, dx = DEMres, dy = DEMres)
2017-12-11 13:28:19 RuntimeError: Unsupported raster transform


From this code:

chunk.exportDem(path=DEMFile, format=PhotoScan.RasterFormat.RasterFormatTiles, projection = chunk.crs, region = DEMregion, dx = DEMres, dy = DEMres)

I've tried countless combinations of settings in chunk.exportDem(...)

Is this even possible or am i missing a trick?

Kind Regards

Dave


Pages: [1]