From: Paul Ramsey Date: Thu, 23 Jul 2015 16:26:08 +0000 (+0000) Subject: #3201 ST_DistanceSphere uses SRID to obtain spheroid X-Git-Tag: 2.2.0rc1~221 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5e3551e7d1eaff9134dc58318fb2c2ddcecd52cc;p=postgis #3201 ST_DistanceSphere uses SRID to obtain spheroid git-svn-id: http://svn.osgeo.org/postgis/trunk@13840 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/reference_measure.xml b/doc/reference_measure.xml index 5f00ccfcf..8bff95d98 100644 --- a/doc/reference_measure.xml +++ b/doc/reference_measure.xml @@ -2188,7 +2188,8 @@ postgis=# SELECT ST_MaxDistance('POINT(0 0)'::geometry, 'LINESTRING ( 2 2, 2 2 ) ST_DistanceSphere Returns minimum distance in meters between two lon/lat - geometries. Uses a spherical earth and radius of 6370986 meters. + geometries. Uses a spherical earth and radius derived from the spheroid + defined by the SRID. Faster than ST_DistanceSpheroid , but less accurate. PostGIS versions prior to 1.5 only implemented for points. @@ -2207,12 +2208,10 @@ postgis=# SELECT ST_MaxDistance('POINT(0 0)'::geometry, 'LINESTRING ( 2 2, 2 2 ) Description Returns minimum distance in meters between two lon/lat - points. Uses a spherical earth and radius of 6370986 meters. + points. Uses a spherical earth and radius derived from the spheroid + defined by the SRID. Faster than , but less accurate. PostGIS Versions prior to 1.5 only implemented for points. - - This function currently does not look at the SRID of a geometry and will always assume its in WGS 84 long lat. Prior versions of this function only support points. - Availability: 1.5 - support for other geometry types besides points was introduced. Prior versions only work with points. Changed: 2.2.0 In prior versions this used to be called ST_Distance_Sphere