2009/11/27 Glynn Clements <[email protected]>:
>
> 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
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev