#3201 ST_DistanceSphere uses SRID to obtain spheroid

git-svn-id: http://svn.osgeo.org/postgis/trunk@13840 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
Paul Ramsey 2015-07-23 16:26:08 +00:00
parent 5212d72cb3
commit 5e3551e7d1

View file

@ -2188,7 +2188,8 @@ postgis=# SELECT ST_MaxDistance('POINT(0 0)'::geometry, 'LINESTRING ( 2 2, 2 2 )
<refname>ST_DistanceSphere</refname> <refname>ST_DistanceSphere</refname>
<refpurpose>Returns minimum distance in meters between two lon/lat <refpurpose>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 <xref linkend="ST_Distance_Spheroid" />, but less Faster than ST_DistanceSpheroid <xref linkend="ST_Distance_Spheroid" />, but less
accurate. PostGIS versions prior to 1.5 only implemented for points.</refpurpose> accurate. PostGIS versions prior to 1.5 only implemented for points.</refpurpose>
</refnamediv> </refnamediv>
@ -2207,12 +2208,10 @@ postgis=# SELECT ST_MaxDistance('POINT(0 0)'::geometry, 'LINESTRING ( 2 2, 2 2 )
<title>Description</title> <title>Description</title>
<para>Returns minimum distance in meters between two lon/lat <para>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 <xref linkend="ST_Distance_Spheroid"/>, but less Faster than <xref linkend="ST_Distance_Spheroid"/>, but less
accurate. PostGIS Versions prior to 1.5 only implemented for points.</para> accurate. PostGIS Versions prior to 1.5 only implemented for points.</para>
<note>
<para>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.</para>
</note>
<para>Availability: 1.5 - support for other geometry types besides points was introduced. Prior versions only work with points.</para> <para>Availability: 1.5 - support for other geometry types besides points was introduced. Prior versions only work with points.</para>
<para>Changed: 2.2.0 In prior versions this used to be called ST_Distance_Sphere</para> <para>Changed: 2.2.0 In prior versions this used to be called ST_Distance_Sphere</para>