[GRASS-dev] should G_raster_map_type() use G_find_cell2() ?
glynn at gclements.plus.com
Sat Oct 28 16:43:36 EDT 2006
Glynn Clements wrote:
> I'm in the process of adding a version which uses the descriptor:
> RASTER_MAP_TYPE G_get_raster_map_type(int fd)
> struct fileinfo *fcb = &G__.fileinfo[fd];
> return fcb->map_type;
> In the case where the map is already open, this would be preferable to
> using the name/mapset.
I've added this function, and replaced the use of G_raster_map_type()
where practical. The number of files which use G_raster_map_type() is
down from 73 to 22 (6 of which are in r.le).
The remaining cases either don't open the map (e.g. modules which only
operate upon support files), or are structured in such a way that
getting at the descriptor is problematic.
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev