I want to find the closest distance from one co-ordinate to the nearest end of a region. Like the image below, how can I calculate the closest distance from red dot to end of the region polygon? So basically the distance of red line.
I used ST_DISTANCE(region_polygon_1, red_dot_coordinate_1)
but it returns 0.
What would be the problem with my st_distance
function?
I used ST_DISTANCE(region_polygon_1, red_dot_coordinate_1)
to get the distance of the red line but it returns 0