I have a query that returns the closest distance between a set of points and multiline:
SELECT DISTINCT ON (h.field_1) h.field_1, b.id, ST_Distance(h.wkb_geometry, b.wkb_geometry) as dist FROM points As h, lines As b
However, given that the projection is EPSG 4326, the distance returned is in degrees which doesn't make much sense. How could one rewrite the query and cast to
::geography so that the distances returned are in meters ?