<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<blockquote type="cite">
<div class="msgHead" style="color: rgb(0, 0, 0); font-family:
helvetica, arial, sans-serif; font-size: 14px; font-style:
normal; font-variant-ligatures: normal; font-variant-caps:
normal; font-weight: 400; letter-spacing: normal; orphans: 2;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255); text-decoration-thickness: initial; text-decoration-style:
initial; text-decoration-color: initial;">
<p class="darkgray font13" style="font-size: 13px; color:
rgb(102, 102, 102);"><span class="sender pipe"
style="margin-right: 0.5em; border-right: 1px solid rgb(221,
221, 221); padding-right: 0.8em;"><a
href="https://www.mail-archive.com/search?l=qgis-user@lists.osgeo.org&q=from:%22krishna+Ayyala%22"
rel="nofollow" style="color: rgb(102, 102, 102);
text-decoration: none;"><span itemprop="author"
itemscope="" itemtype="http://schema.org/Person"><span
itemprop="name">krishna Ayyala</span></span></a></span><span> </span><span
class="date"><a
href="https://www.mail-archive.com/search?l=qgis-user@lists.osgeo.org&q=date:20220130"
rel="nofollow" style="color: rgb(102, 102, 102);
text-decoration: none;">Sun, 30 Jan 2022 08:45:26 -0800</a></span></p>
</div>
<div itemprop="articleBody" class="msgBody" style="color: rgb(0,
0, 0); font-family: helvetica, arial, sans-serif; font-size:
14px; font-style: normal; font-variant-ligatures: normal;
font-variant-caps: normal; font-weight: 400; letter-spacing:
normal; orphans: 2; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255); text-decoration-thickness:
initial; text-decoration-style: initial; text-decoration-color:
initial;">
<pre style="font-family: courier, "courier new", monospace; font-size: 1em; white-space: pre-wrap; overflow-wrap: break-word; margin: 0px;">Hello,
I am re-posting this question. I have a point shape with about 1000 points.
On the map, I wish to show only those points that are within 1000ft of each
other and drop the rest of the points.</pre>
</div>
</blockquote>
...<br>
<blockquote type="cite">
<div itemprop="articleBody" class="msgBody" style="color: rgb(0,
0, 0); font-family: helvetica, arial, sans-serif; font-size:
14px; font-style: normal; font-variant-ligatures: normal;
font-variant-caps: normal; font-weight: 400; letter-spacing:
normal; orphans: 2; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255); text-decoration-thickness:
initial; text-decoration-style: initial; text-decoration-color:
initial;">
<pre style="font-family: courier, "courier new", monospace; font-size: 1em; white-space: pre-wrap; overflow-wrap: break-word; margin: 0px;">I have used the below formula and changed the max_distance to different
values as mentioned above. I am herewith attaching the points shapefile
again.
overlay_nearest('Points',max_distance:=1000)</pre>
</div>
</blockquote>
<br>
Hi Krishna,<br>
I think there is a bug in the functionality: it seems to me the
overlay_nearest function, with the max_distance parameter, doesn't
work properly if the layer is a Shapefile.<br>
<br>
If you export you layer in a GeoPackage or Spatialite format and use
the exported layer, then the overlay_nearest function with the
max_distance will work correctly and return the expected results.<br>
<br>
If other user also also confirm that this issue occurs, it could be
worth to file a bug report.<br>
<br>
Anyway, your layer is in the EPSG:3857 CRS. AFAIK the distance of
the max_distance parameter is calculated in the layer CRS Cartesian
plane. Consider that the EPSG:3857 CRS has a big linear measurement
distortion far from the equator.<br>
<br>
Regards.<br>
<br>
Andrea Giudiceandrea<br>
</body>
</html>