[postgis-users] Calculate the distance between a point and a line

Luca Bertoncello lucabert at lucabert.de
Wed Jan 6 10:40:15 PST 2021


Am 06.01.2021 um 17:54 schrieb Paul Ramsey:
> Oh, perhaps your ways are already in mercator?
> 
> ST_Distance('SRID=4326;POINT(14.0007583 50.8379138)'::geography, st_transform(way,4326)::geography) as dist

Yes, this is! ;)

Thank you very much!
Luca Bertoncello
(lucabert at lucabert.de)


More information about the postgis-users mailing list