I have a simple question about calculating distances in PostGIS.
I would like to get the distance between two geometries. I am using this sid : 4269 in meters
what i am doing now is this :
ST_Distance((a.geom,b.geom)) FROM ... but I am getting result in degrees. I think that I should work with geography but how can I cast a geom to a geography? I tried with (a.geom::geography) but i am getting an error.
What can I do to get my result in meters?