[postgis-devel] Polyhedral Containment

Paul Ramsey pramsey at cleverelephant.ca
Wed Feb 25 12:03:08 PST 2015


Is there a 3d function that can answer this question and return true? (volumetric containment?)

ST_3dIntersects(
 'POLYHEDRALSURFACE( 
 ((0 0 0, 0 0 1, 0 1 1, 0 1 0, 0 0 0)),  
 ((0 0 0, 0 1 0, 1 1 0, 1 0 0, 0 0 0)), 
 ((0 0 0, 1 0 0, 1 0 1, 0 0 1, 0 0 0)), 
 ((1 1 0, 1 1 1, 1 0 1, 1 0 0, 1 1 0)),  
 ((0 1 0, 0 1 1, 1 1 1, 1 1 0, 0 1 0)),  
 ((0 0 1, 1 0 1, 1 1 1, 0 1 1, 0 0 1)) 
 )', 'POINT(0.5 0.5 0.5)');


-- 
Paul Ramsey
http://cleverelephant.ca
http://postgis.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20150225/7c4a3ce8/attachment.html>


More information about the postgis-devel mailing list