I have a database of points coordinates taken from OSM. My geometry column is called wkb_geometry
. I am trying to find the most remote point (by distance to the next nearest point). I was hoping to use the new ST_MaximumInscribedCircle
function and then order by radius to find the most remote point. Below is the code I have so far. It runs but returns 0
for the radius. The example on the PostGIS website is for a polygon.
SELECT
osm_id, name,
geom.radius,
geom.center,
geom.nearest
FROM
australian_points AS t,
LATERAL ST_MaximumInscribedCircle(t.wkb_geometry) AS geom
ORDER BY geom.radius ASC
;
australian_points
is a points layer not a polygon layerMULTIPOINT
usingST_MaximumInscribedCircle( ST_Collect( t.wkb_geometry))