]> granicus.if.org Git - postgis/commitdiff
#3201 ST_DistanceSphere uses SRID to obtain spheroid
authorPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 23 Jul 2015 16:26:08 +0000 (16:26 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 23 Jul 2015 16:26:08 +0000 (16:26 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@13840 b70326c6-7e19-0410-871a-916f4a2858ee

doc/reference_measure.xml

index 5f00ccfcfdd362e27c9fddafb776f8fa97834002..8bff95d981674c5c20ae8540974823b01f2e9818 100644 (file)
@@ -2188,7 +2188,8 @@ postgis=# SELECT ST_MaxDistance('POINT(0 0)'::geometry, 'LINESTRING ( 2 2, 2 2 )
                <refname>ST_DistanceSphere</refname>
 
                <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
                                accurate. PostGIS versions prior to 1.5 only implemented for points.</refpurpose>
          </refnamediv>
@@ -2207,12 +2208,10 @@ postgis=# SELECT ST_MaxDistance('POINT(0 0)'::geometry, 'LINESTRING ( 2 2, 2 2 )
                <title>Description</title>
 
                <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
                                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>Changed: 2.2.0 In prior versions this used to be called ST_Distance_Sphere</para>