[GRASS5] [bug #1047] (grass) suggestion to solve r.proj initialization problem

Request Tracker grass-bugs at intevation.de
Fri May 17 06:16:08 EDT 2002


this bug's URL: http://intevation.de/rt/webrt?serial_num=1047
-------------------------------------------------------------------------

Subject: suggestion to solve r.proj initialization problem

grass binary for platform: Compiled from Sources

It appears that  r.in.gdal sometimes (e.g. ASTERDEM/GTIFF) write a PROJ_INFO file with upper-case ellipsoid. This is not accepted by [rvs].proj:

r.proj in=asterdem loc=mainz map=PERMANENT out=mainz.asterdem res=30
cannot initialize pj
cause: unknown elliptical parameter name
ERROR: Can't get projection key values of input mapG

PROJ_INFO looks as follows:
projection: 1 (UTM)
zone:       32
datum:      WGS84
ellipsoid:  WGS84
[...]

When changing datum/ellips to lower case characters, it works (of course).

My suggestion is to apply  the function
char * G_tolcase (string)

somewhere in
key_value2.c called by
 src/libes/gis/get_projinfo.c 

to generally resolve that problem. 

Markus

PS: reported by Otto Dassau

-------------------------------------------- Managed by Request Tracker



More information about the grass-dev mailing list