<div dir="ltr">Hi, Friends,<div><br></div><div>I am a little bit confused.</div><div><br></div><div>If I use geometry as data type, do I put something like 5 metres and <code class="gmail-varname" style="font-size:1.05em;font-family:Consolas,Monaco,monospace;color:black;background-color:rgb(238,238,238);font-weight:bold">use_spheroid</code><span style="color:rgb(46,46,46);font-family:"Lucida Grande",Verdana,Geneva,Arial,Helvetica,sans-serif;font-size:16px">=false?</span></div><div><span style="color:rgb(46,46,46);font-family:"Lucida Grande",Verdana,Geneva,Arial,Helvetica,sans-serif;font-size:16px"><br></span></div><div><span style="color:rgb(46,46,46);font-family:"Lucida Grande",Verdana,Geneva,Arial,Helvetica,sans-serif;font-size:16px">Is that correct?</span></div><div><span style="color:rgb(46,46,46);font-family:"Lucida Grande",Verdana,Geneva,Arial,Helvetica,sans-serif;font-size:16px"><br></span></div><div><span style="color:rgb(46,46,46);font-family:"Lucida Grande",Verdana,Geneva,Arial,Helvetica,sans-serif;font-size:16px">Regards,</span></div><div><span style="color:rgb(46,46,46);font-family:"Lucida Grande",Verdana,Geneva,Arial,Helvetica,sans-serif;font-size:16px"><br></span></div><div><span style="color:rgb(46,46,46);font-family:"Lucida Grande",Verdana,Geneva,Arial,Helvetica,sans-serif;font-size:16px">Shao</span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 15 May 2020 at 13:00, Giuseppe Broccolo <<a href="mailto:g.broccolo.7@gmail.com">g.broccolo.7@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"><div>Hi Shao,<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno ven 15 mag 2020 alle ore 11:56 Shaozhong SHI <<a href="mailto:shishaozhong@gmail.com" target="_blank">shishaozhong@gmail.com</a>> ha scritto:<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">Hi, Nicolas,<div><br></div><div>Thanks.</div><div><br></div><div>That is very interesting.  I will test it.</div><div><br></div><div>I could not find information on how distance is defined.  0.01 stands on what unit?</div><div><br></div><div><a href="https://postgis.net/docs/ST_DWithin.html" target="_blank">https://postgis.net/docs/ST_DWithin.html</a> </div></div></blockquote><div><br></div><div>Have a look to this statement in the doc you linked:<br><br>"""<br>For <span>geometry</span>: The distance is specified in units defined by the
                spatial reference system of the geometries.  For this function to make
                sense, the source geometries must both be of the same coordinate projection,
                having the same SRID.</div><div><br></div><div>For <span>geography</span> units are in meters and measurement is
                defaulted to <code>use_spheroid</code>=true, for faster check, <code>use_spheroid</code>=false to measure along sphere.</div><div>"""<br></div><div> </div><div>Giuseppe.</div><br></div></div>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">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/mailman/listinfo/postgis-users</a></blockquote></div>