[GRASS-dev] r.example question
Markus Neteler
neteler at osgeo.org
Fri Nov 27 02:30:31 EST 2009
2009/11/27 Glynn Clements <glynn at gclements.plus.com>:
>
> António Rocha wrote:
>
>> In r.example this is performed
>> /* G_open_cell_old - returns file destriptor (>0) */
>> if ((infd = G_open_cell_old(name, mapset)) < 0)
>> G_fatal_error(_("Unable to open raster map <%s>"), name);
>>
>> Does this means that r.example only reads integer maps? I'm asking this
>> because in GRASS manual, G_open_cell_old is described as:
>>
>> Open an existing integer raster map (cell).
>
> G_open_cell_old() will open both integer and FP maps. "cell" is being
> used as a synonym for "raster"; the terminology pre-dates the support
> for FP maps.
... hence it has been renamed in GRASS 7 to a more
reasonable name scheme:
grass70/doc/raster/r.example/main.c
...
/* Rast_open_old - returns file destriptor (>0) */
if ((infd = Rast_open_old(name, mapset)) < 0)
G_fatal_error(_("Unable to open raster map <%s>"), name);
Markus
More information about the grass-dev
mailing list