<div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace">Hey,<br></div><div class="gmail_default" style="font-family:monospace,monospace">I can't test right now,<br></div><div class="gmail_default" style="font-family:monospace,monospace">but : <br> - you have the same srid for object and bbox right?<br></div><div class="gmail_default" style="font-family:monospace,monospace"> - I remember Sandro discussing this case<br><br></div><div class="gmail_default" style="font-family:monospace,monospace">Cheers,<br></div><div class="gmail_default" style="font-family:monospace,monospace">Rémi-C<br></div><div class="gmail_default" style="font-family:monospace,monospace"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-01-18 14:47 GMT+01:00 Andrea Aime <span dir="ltr"><<a href="mailto:andrea.aime@geo-solutions.it" target="_blank">andrea.aime@geo-solutions.it</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div>I'm trying to perform a "simple" 3d bounding box filter against a dataset with 3d coordinates</div><div>and I'm getting some funny/weird results. I am using postgis 2.2.</div><div><br></div><div>The table looks as follows:</div><div><br></div><div><div> Table "public.3dfloor"<br></div><div> Column | Type | Modifiers </div><div>------------+-----------------<wbr>--------------+---------------<wbr>------------------------------<wbr>------------</div><div> gid | integer | not null default nextval('"3dfloor_gid_seq"'::<wbr>regclass)</div><div> newfeat_id | integer | </div><div><div> geom | geometry(MultiPolygonZ,7415) | </div></div><div>Indexes:<br></div><div> "3dfloor_pkey" PRIMARY KEY, btree (gid)</div><div> "3dfloor_geom_idx" gist (geom gist_geometry_ops_nd)</div><div><br></div><div>The index has been created with ND support. Now, the table contains 16 rows with varying Z values,</div><div>sample summary here:</div><div><br></div><div><div>> select gid, ST_ZMin(geom), ST_ZMax(geom) from "3dfloor";</div><div> gid | st_zmin | st_zmax </div><div>-----+---------+---------</div><div> 1 | 0 | 0</div><div> 2 | 0 | 0</div><div> 3 | 3 | 3</div><div> 4 | 6 | 6</div><div> 5 | 9 | 9</div><div> 6 | 12 | 12</div><div> 7 | 15 | 15</div><div> 8 | 18 | 18</div><div> 9 | 21 | 21</div><div> 10 | 24 | 24</div><div> 11 | 27 | 27</div><div> 12 | 30 | 30</div><div> 13 | 33 | 33</div><div> 14 | 36 | 36</div><div> 15 | 39 | 39</div><div> 16 | 42 | 42</div></div><div><br></div><div>I'm trying to filter using a 3d bbox, but I'm getting back all rows while I would expect to get only the first two, instead I'm getting</div><div>back all of them:</div><div><br></div><div>> select count(*) from "3dfloor" where geom &&& ST_3DMakeBox(ST_makePoint(0,0,<wbr>0), ST_MakePoint(1000000,1000000,<wbr>1));<br></div><div>16</div><div><br></div><div>Anyone knows why it's happening? Hopefully I'm missing something obvious :-)</div><div><br></div><div>Cheers</div><div>Andrea</div><div><br></div><div><br></div>-- <br><div class="m_4289772244593108311gmail_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: +39 0584 962313</span><br></div><div>fax: +39 0584 1660272</div><div>mob: +39 339 8844549</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>
</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>