<div dir="ltr">No, just construct a 3D geometry as your query filter, not a 3d box.<div><br></div><div><span style="font-size:12.8px">select count(*) from "3dfloor" where geom &&& ST_Makeline(ST_MakePoint(0,0,</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">0), ST_MakePoint(1000000,1000000,</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">1));</span><br></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">I would imagine that should work fine and dodge this little nastiness.</span></div><div><span style="font-size:12.8px"><br>P</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 19, 2017 at 5:14 AM, Andrea Aime <span dir="ltr"><<a href="mailto:andrea.aime@geo-solutions.it" target="_blank">andrea.aime@geo-solutions.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="">On Wed, Jan 18, 2017 at 5:13 PM, Rémi Cura <span dir="ltr"><<a href="mailto:remi.cura@gmail.com" target="_blank">remi.cura@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-family:monospace,monospace">Hey,<br></div><div style="font-family:monospace,monospace">I can't test right now,<br></div><div style="font-family:monospace,monospace">but : <br> - you have the same srid for object and bbox right?<br></div></div></blockquote><div><br></div></span><div>Err... the box3d does not seem to have a srid, nor I could find a way to assign one.</div><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-family:monospace,monospace"></div><div style="font-family:monospace,monospace"> - I remember Sandro discussing this case<br></div></div></blockquote><div><br></div></span><div>I searched in postgis-users before sending and again now, but could not find any.</div><div>I've now searched in postgis-devel and found a thread you started on the topic instead:</div><div><a href="http://osgeo-org.1560.x6.nabble.com/BOX3D-strange-behaviour-td5251231.html" target="_blank">http://osgeo-org.1560.x6.<wbr>nabble.com/BOX3D-strange-<wbr>behaviour-td5251231.html</a><br></div><div><br></div><div>So... it seems that the z gets dropped eh? I see a pull request to fix it but it seems it has</div><div>been closed and the associated ticket marked as "wont' fix":</div><div><a href="https://trac.osgeo.org/postgis/ticket/3466" target="_blank">https://trac.osgeo.org/<wbr>postgis/ticket/3466</a><br></div><div><br></div><div>Soo... should I do 2d filtering using && and then do the z filtering using ST_Zmin/ST_ZMax?</div><div><br></div><div>Cheers</div><span class="HOEnZb"><font color="#888888"><div>Andrea</div><div><br></div></font></span></div><span class="">-- <br><div class="m_442435042839183364gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><div><div>==</div><div>GeoServer Professional Services from the experts! Visit</div><div><a href="http://goo.gl/it488V" target="_blank">http://goo.gl/it488V</a> for more information.</div><div><span style="font-size:12.8px">==</span><br></div></div><div><br></div></div><div>Ing. Andrea Aime <br></div><div>@geowolf</div><div>Technical Lead</div><div><br></div><div><span style="font-size:12.8px">GeoSolutions S.A.S.</span><br style="font-size:12.8px"><span style="font-size:12.8px">Via di Montramito 3/A</span><br style="font-size:12.8px"><span style="font-size:12.8px">55054  Massarosa (LU)</span></div><div><span style="font-size:12.8px">phone: <a href="tel:+39%200584%20962313" value="+390584962313" target="_blank">+39 0584 962313</a></span><br></div><div>fax: <a href="tel:+39%200584%20166%200272" value="+3905841660272" target="_blank">+39 0584 1660272</a></div><div>mob: <a href="tel:+39%20339%20884%204549" value="+393398844549" target="_blank">+39  339 8844549</a></div><div><br></div><div><a href="http://www.geo-solutions.it" target="_blank">http://www.geo-solutions.it</a></div><div><a href="http://twitter.com/geosolutions_it" target="_blank">http://twitter.com/<wbr>geosolutions_it</a></div><div><br></div><div><p><span lang="IT"><font size="1"><b>AVVERTENZE AI SENSI DEL D.Lgs. 196/2003</b></font></span></p><p><span lang="IT"><font size="1">Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.</font></span></p><p><span lang="IT"><font size="1"> </font></span></p><p><font size="1">The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility  for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.</font></p></div><div><br></div><div>------------------------------<wbr>-------------------------</div></div></div></div></div></div></div></div></div></div></div>
</span></div></div>
<br>______________________________<wbr>_________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/postgis-users</a><br></blockquote></div><br></div>