[postgis-users] PointCloud to Delaunay Triangles

Jonathan Moules J.Moules at hrwallingford.com
Wed Aug 5 04:59:35 PDT 2015


Hi List,
I have a pointcloud, and I want to turn it into a TIN (so I guess ST_DelaunayTriangles), and then measure the length of the sides of the triangles.

Does anyone have any suggestions on how to do this, ideally in a performant fashion?


I've tried a few things, but I'm currently struggling to just turn the points into the TIN. The following fails with the error "set-valued function called in context that cannot accept a set" - alas googling doesn't find anything that explains clearly what the error means. I'm guessing it doesn't want to use an aggregation function (st_union and st_accum also fail), but it's not clear why.

SELECT
            st_collect(pc_explode((pa))::geometry)
from
            TABLENAME where cloud_id = 994

Any thoughts welcome.

Thanks,
Jonathan

________________________________

HR Wallingford and its subsidiaries uses faxes and emails for confidential and legally privileged business communications. They do not of themselves create legal commitments. Disclosure to parties other than addressees requires our specific consent. We are not liable for unauthorised disclosures nor reliance upon them.
If you have received this message in error please advise us immediately and destroy all copies of it.

HR Wallingford Limited
Howbery Park, Wallingford, Oxfordshire, OX10 8BA, United Kingdom
Registered in England No. 02562099

________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20150805/4ae87aa5/attachment.html>


More information about the postgis-users mailing list