[GRASS5] GRASS and lat/long with sphere

Markus Neteler neteler at itc.it
Tue Oct 1 04:04:48 EDT 2002


On Thu, Sep 26, 2002 at 04:18:17PM +0200, Markus Neteler wrote:
> Hi,
> 
> while trying to define a lat/long location with Sphere instead
> of WGS84, I found in
> 
> src/libes/gis/ellipse.table
> # earth as a sphere:
> # There is a bug in libes/gis/get_ellipse.c, where a function
> # return e=0.0 in any case. So do not use sphere!
> # sphere        "Spherical Earth"               a=6370997.000
> 
> Is there no/any hope to fix the code (I don't know how...).

[Note that also for Mars planet GIS activities the sphere is
 required. So we should really support it]

... of course I tried it by activating the "sphere" line. What happens:

- select lat/long

Please enter a one line description for location <sphere>
 
> sphere test
=====================================================
sphere test
=====================================================
ok? (y/n) [y]
WARNING: Line 144 of ellipsoid table file

</mpa_sw/ssi/BIO/software/GRASS5.0.0/grass5bin_cvs/grass5/etc/ellipse.table>
is invalid
 
Please specify ellipsoid name
Enter 'list' for the list of available ellipsoids
Hit RETURN to cancel request
>

The warning occurs at
src/libes/gis/get_ellipse.c
line 329

Is there an expert around?

Thanks,

 Markus




More information about the grass-dev mailing list