[postgis-users] length_spheroid problem
David Blasby
dblasby at refractions.net
Wed Apr 28 16:15:56 PDT 2004
Wood Brent wrote:
> env2003=# select length_spheroid('LINESTRING(0 0,1 1)',
> 'SPHEROID["WGS84",6378137,298.25728]');
> length_spheroid
> ------------------
> 156899.568401239
> (1 row)
I get this too.
> env2003=# select length_spheroid('LINESTRING(178 -43, 179 -43)',
> 'SPHEROID["WGS84",6378137,298.25728]');
> length_spheroid
> -----------------
> NaN
> (1 row)
I get 81540.4863443025.
I recently made a bunch of improvements to the length_spheroid functions
- you might want to get the latest CVS version of PostGIS.
More information about the postgis-users
mailing list