I am running this query:
SELECT source,ST_AsText(ST_ClosestPoint(roads.geom,ST_GeomFromText('POINT(22.256 39.569)')))
FROM roads
ORDER BY ST_Distance(roads.geom,ST_GeomFromText('POINT(22.256 39.569)')'))
LIMIT 1;
I have followed this answer and reprojected my table geom_ways in my database to 4326 which is the SRID of geometry points but the query will not run because there are not matching geometries?