<div dir="auto">I would say you have at least one geometry error in your dataset. Did you Check them?</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mar. 24 mai 2022 à 17:58, Sydney Togarepi <<a href="mailto:stogarepi@gmail.com">stogarepi@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>My sql query is liek this</div><div><br></div><div>select cntry_name<br>from public.country<br>where st_dwithin(st_transform(country.geom,32736),(select (st_transform(cities1.geom,32736))from public.cities1 where city_name ='Harare'),600)</div><div></div><div><br></div><div>and i am getting this error message.</div><div>
ERROR:  ptarray_contains_point called on unclosed ring
CONTEXT:  SQL function "st_dwithin" statement 1
SQL state: XX000 <br></div><div><br></div><div>i am trying to get cities that are within a distance of 600unit from the given city<br></div><div><br></div><div><br></div><div><div><div dir="ltr" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Sydney Togarepi</div><div>cell +263 773 883 627</div><div><a href="mailto:e-mail%3Astogarepi@gmail.com" target="_blank" rel="noreferrer">e-mail:stogarepi@gmail.com</a></div><div>Skype: sydney998</div></div></div></div></div></div></div></div>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank" rel="noreferrer">postgis-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a><br>
</blockquote></div>