[postgis-users] Units for distance function

Michael Fuhr mike at fuhr.org
Thu Jul 26 20:47:51 PDT 2007


On Fri, Jul 27, 2007 at 01:49:28AM +0100, Dave Potts wrote:
> What units does the distance function use?  am I correct in thinking its 
> derrived from the srid type of the geometry column?

Distance/st_distance returns the distance between two geometries
in whatever units the geometries use (meters, feet, degrees, etc.).

> So in the case of the British national grid srid 2770  the correct unit 
> to use is the meter

I assume you mean SRID 27700, in which case distances would be meters.

-- 
Michael Fuhr



More information about the postgis-users mailing list