[GRASS5] Re: [bug #1052] (grass) [rsv].proj are crashing

Markus Neteler neteler at itc.it
Thu May 23 04:32:20 EDT 2002


On Thu, May 23, 2002 at 10:26:14AM +0200, Markus Neteler wrote:
[...]
> But...
> Then the next bug occurs due to the new NAD datum support:
> In r.proj/main.c line 279 is the function G_database_datum_name() used:
>    strncpy(in_datum,G_database_datum_name(),sizeof(in_datum));
> For my existing locations it returns NULL which causes a crash
> of strncpy(). The function G_database_datum_name() is in
> src/libes/gis/proj3.c
> 
> How to solve that one (hi Roger)? Therefore [vs].proj are also affected.

A followup:
After using 'g.setproj' in the source location (for r.proj) to define
the map datum, r.proj works fine.

Means: we need a change in case no map datum is present in the
PROJ_INFO file (which will be the case for many locations out there,
especially since the definition of a map datum is not forced).




More information about the grass-dev mailing list