<div dir="ltr">Hey,<div>I exploit this type of casting (2D-> 2D+always_true_1D) all the time,</div><div>it is extremely usefull.<br><br></div><div>I find it logical if you see things like this </div><div>A::geom3D</div><div>B::geom2D</div><div><br></div><div>3DDistance(A,B) -> type mismatch</div><div>2D->3D : not possible</div><div>3D->2D : drop Z</div><div><br></div><div>=> 3DDistance(A::geom2D,B::geom2D)</div><div><br></div><div>Cheers,<br>Rémi-C</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-02-24 16:26 GMT+01:00 Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@spatialys.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le mardi 24 février 2015 16:15:53, Sandro Santilli a écrit :<br>
<span class="">> On Tue, Feb 24, 2015 at 08:09:26AM -0500, Paul Ramsey wrote:<br>
> > Well, the old semantic has been there since 2.0, which is a very long<br>
> > time. A further question for it would be: what do the next functions do?<br>
> > What does a distance calculation between a 2d and 3d object return? does<br>
> > it also respect that semantic?<br>
><br>
> I just checked and ST_3DDistance is instead still confusing:<br>
> select ST_3DDistance('POINT Z (0 0 10)', 'POINT (0 0)'); -- 10<br>
> I think it should be 0 instead.<br>
<br>
</span>As an uninformed observer, 10 or an error because of heterogenous dimensions<br>
would seem reasonable to me. But 0 would be very surprising !<br>
<span class="im HOEnZb"><br>
><br>
> For the new <<->> and <<#>> operators I implemented the new semantic<br>
> (<a href="https://github.com/postgis/postgis/pull/34" target="_blank">https://github.com/postgis/postgis/pull/34</a>)<br>
><br>
> --strk;<br>
> _______________________________________________<br>
> postgis-devel mailing list<br>
> <a href="mailto:postgis-devel@lists.osgeo.org">postgis-devel@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-devel" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-devel</a><br>
<br>
</span><span class="HOEnZb"><font color="#888888">--<br>
Spatialys - Geospatial professional services<br>
<a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a><br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
postgis-devel mailing list<br>
<a href="mailto:postgis-devel@lists.osgeo.org">postgis-devel@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-devel" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-devel</a><br>
</div></div></blockquote></div><br></div>