[GRASS-dev] G_find_key_value() case sensitive

Martin Landa landa.martin at gmail.com
Wed Mar 21 09:36:10 EDT 2012


Hi,

2012/3/21 Glynn Clements <glynn at gclements.plus.com>:
> Why does this matter?

some files use upper-case for keys

cat ~/grassdata/nc_spm_08/pg/VAR
DB_DRIVER: sqlite
DB_DATABASE: $GISDBASE/$LOCATION_NAME/$MAPSET/sqlite.db

some lower-case

cat ~/grassdata/nc_spm_08/pg/GDAL
directory: /home/martin/smetiste/
format: GTiff

it would be probably better to consolidate naming convention to
upper-case. Then e.g. `r.external.out` would write GDAL file with
upper-case keys, in this case

DIRECTORY: /home/martin/smetiste/
FORMAT: GTiff

Case insensitive G_find_key_value() would enable eg. to read GDAL
files created before this change (lower -> upper).

Martin

-- 
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa


More information about the grass-dev mailing list