<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Oh forgot to mention – for current system, you'd have to use the ST_Extrude function (extrude a polygon up to a cube) and then it would automagically get treated as a solid.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal style='margin-left:.5in'><b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'>From:</span></b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'> postgis-devel-bounces@lists.osgeo.org [mailto:postgis-devel-bounces@lists.osgeo.org] <b>On Behalf Of </b>Paragon Corporation<br><b>Sent:</b> Wednesday, February 25, 2015 3:45 PM<br><b>To:</b> 'PostGIS Development Discussion'<br><b>Subject:</b> Re: [postgis-devel] Polyhedral Containment<o:p></o:p></span></p></div></div><p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p><p class=MsoNormal style='margin-left:.5in'><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Paul,<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>With the new function that Vince is going to put in, it would handle this.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>And would be something like<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>SELECT ST_3DIntersects( <o:p></o:p></span></p><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif'>ST_MakeSolid( 'POLYHEDRALSURFACE( <o:p></o:p></span></p><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif'> ((0 0 0, 0 0 1, 0 1 1, 0 1 0, 0 0 0)),  <o:p></o:p></span></p><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif'> ((0 0 0, 0 1 0, 1 1 0, 1 0 0, 0 0 0)), <o:p></o:p></span></p><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif'> ((0 0 0, 1 0 0, 1 0 1, 0 0 1, 0 0 0)), <o:p></o:p></span></p><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif'> ((1 1 0, 1 1 1, 1 0 1, 1 0 0, 1 1 0)),  <o:p></o:p></span></p><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif'> ((0 1 0, 0 1 1, 1 1 1, 1 1 0, 0 1 0)),  <o:p></o:p></span></p><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif'> ((0 0 1, 1 0 1, 1 1 1, 0 1 1, 0 0 1)) <o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif'> )'::geometry), 'POINT(0.5 0.5 0.5)'::geometry);<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif'><o:p> </o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif'>Shame on you for not casting to geometry </span><span style='font-size:10.0pt;font-family:Wingdings'>J</span><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif'><o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif'><o:p> </o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>See this note:<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><a href="http://lists.osgeo.org/pipermail/postgis-devel/2015-January/024710.html">http://lists.osgeo.org/pipermail/postgis-devel/2015-January/024710.html</a><o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Hope that helps,<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Regina<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><a href="http://www.postgis.us">http://www.postgis.us</a><o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><a href="http://postgis.net">http://postgis.net</a><o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal style='margin-left:1.0in'><b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'>From:</span></b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'> <a href="mailto:postgis-devel-bounces@lists.osgeo.org">postgis-devel-bounces@lists.osgeo.org</a> [<a href="mailto:postgis-devel-bounces@lists.osgeo.org">mailto:postgis-devel-bounces@lists.osgeo.org</a>] <b>On Behalf Of </b>Paul Ramsey<br><b>Sent:</b> Wednesday, February 25, 2015 3:03 PM<br><b>To:</b> PostGIS Development Discussion<br><b>Subject:</b> [postgis-devel] Polyhedral Containment<o:p></o:p></span></p></div></div><p class=MsoNormal style='margin-left:1.0in'><o:p> </o:p></p><div id="bloop_customfont"><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif'>Is there a 3d function that can answer this question and return true? (volumetric containment?)<o:p></o:p></span></p></div><div id="bloop_customfont"><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif'><o:p> </o:p></span></p></div><div id="bloop_customfont"><div id="bloop_customfont"><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif'>ST_3dIntersects(<o:p></o:p></span></p></div><div id="bloop_customfont"><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif'> 'POLYHEDRALSURFACE( <o:p></o:p></span></p></div><div id="bloop_customfont"><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif'> ((0 0 0, 0 0 1, 0 1 1, 0 1 0, 0 0 0)),  <o:p></o:p></span></p></div><div id="bloop_customfont"><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif'> ((0 0 0, 0 1 0, 1 1 0, 1 0 0, 0 0 0)), <o:p></o:p></span></p></div><div id="bloop_customfont"><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif'> ((0 0 0, 1 0 0, 1 0 1, 0 0 1, 0 0 0)), <o:p></o:p></span></p></div><div id="bloop_customfont"><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif'> ((1 1 0, 1 1 1, 1 0 1, 1 0 0, 1 1 0)),  <o:p></o:p></span></p></div><div id="bloop_customfont"><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif'> ((0 1 0, 0 1 1, 1 1 1, 1 1 0, 0 1 0)),  <o:p></o:p></span></p></div><div id="bloop_customfont"><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif'> ((0 0 1, 1 0 1, 1 1 1, 0 1 1, 0 0 1)) <o:p></o:p></span></p></div><div id="bloop_customfont"><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif'> )', 'POINT(0.5 0.5 0.5)');<o:p></o:p></span></p></div></div><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif'><o:p> </o:p></span></p><div id="bloop_sign_1424894540620563968"><div><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif'><o:p> </o:p></span></p></div><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif'>-- <br>Paul Ramsey<br><a href="http://cleverelephant.ca">http://cleverelephant.ca</a><o:p></o:p></span></p><div><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif'><a href="http://postgis.net">http://postgis.net</a> <o:p></o:p></span></p></div></div></div></body></html>