[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postgis-users
Subject:    Re: [postgis-users] length_spheroid problem
From:       David Blasby <dblasby () refractions ! net>
Date:       2004-04-28 23:15:56
Message-ID: 40903B2C.4060207 () refractions ! net
[Download RAW message or body]

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.




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic