[postgis-users] ST_length_spheroid and ST_distance_spheroid

Paul Ramsey pramsey at cleverelephant.ca
Thu Apr 22 07:49:43 PDT 2010


They don't, at least for me:

postgis14=# select st_length_spheroid(GeomFromText('LINESTRING(0 0,180
         0)',4326),'SPHEROID["WGS 84",6378137,298.257223563]')
                  ;
 st_length_spheroid
--------------------
   20037508.3427892
(1 row)

postgis14=# select st_distance_spheroid(geomfromtext('POINT(0 0)',4326),
postgis14(# geomfromtext('POINT(180 0)',4326),'SPHEROID["WGS
postgis14'# 84",6378137,298.257223563]');
 st_distance_spheroid
----------------------
     20037508.3427892
(1 row)



On Thu, Apr 22, 2010 at 3:34 AM, Rykov Denis <rykovd at gmail.com> wrote:
> Hi.
> Why these functions returns different results?
>
> st_length_spheroid(GeomFromText('LINESTRING(0 0,180
> 0)',4326),'SPHEROID["WGS 84",6378137,298.257223563]')
> &
> st_distance_spheroid(geomfromtext('POINT(0 0)',4326),
> geomfromtext('POINT(180 0)',4326),'SPHEROID["WGS
> 84",6378137,298.257223563]')
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>



More information about the postgis-users mailing list