Is it possible to export automatic points using Python API for Contextcapture? The Blockexchange exports in large XML which is not optimal.
Moving question over to the ContextCapture Forum.
It is possible to get automatic tie points efficiently from the SDK: Use the following functions in the block API: getNumTiePoints and getTiePoint
getTiePoint
Return an element in the array of tie points generated by aerotriangulation.
getNumTiePoints
Return the number of tie points generated by aerotriangulation.
Ok it works but how to extract points it returns object:
[Block_1 - AT]:NumTiePoints: 1841getTiePoint <ccmasterkernel.bindings.TiePoint object at 0x000001B13038A988>
dump_TiePoints2xyz.zip
Ok got it. Managed to create a script which exports sparse points after aerotriangulation to XYZ+RGB CSV file.
P.S. In case of georeferenced block results will be in ECEF coordinates.
Small update for CC Update 15. Now added option to input coordinate system.
Before executing the script open it for edit and adjust projectDirPath, outputFilePath, outputSRS to your needs.
Also made a script which allows to export AT points to LandXML format which could be used for quick volume calculations. But keep in mind that it is not correct ground extraction so suitable only if no vegetation or other objects(vehicles etc) are on surface(check for spikes in results).
dump_TiePoints2xyz-SRS.zip
dump_TiePoints2landxml-SRS.zip
Answer Verified By: Oto