<div dir="ltr"><div class="gmail_quote"><div dir="ltr">To answer the question about "Why in C", it is generally slow and inexact to test distances by way of generating buffers.  Also, for "within distance" kinds of queries there is potential to use internal spatial indexing to significantly improve performance.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 25, 2024 at 10:19 AM Bruce Rindahl <<a href="mailto:bruce.rindahl@gmail.com" target="_blank">bruce.rindahl@gmail.com</a>> wrote:<br></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">I agree with Regina.  Also why are we coding this as a function in C when it can be done either of two ways in SQL:<div><br></div><div>ST_Contains(ST_Buffer(B, radius), A)<br>OR<br>ST_Within(A, ST_Buffer(B,radius))<br></div><div><br></div><div>For example there are numerous functions written in SQL that call the one function ST_Affine.</div></div>
</blockquote></div>
</div></div>