[GRASS-dev] where is G_raster_map_type?

OS: windows7 x86
grass: grass-7.0.SVN native build
WinGRASS-7.0.SVN-r47191-1-Setup.exe

import os, sys
from grass.lib import gis as grass
from grass.lib import raster as raster
if “GISBASE” not in os.environ:
print “You must be in GRASS GIS to run this program.”
sys.exit(1)

grass.G_gisinit(‘’)
data_type = raster.G_raster_map_type(‘myrast’, ‘PERMANENT’)

error log

data_type = raster.G_raster_map_type(‘myrast’, ‘PERMANENT’)
AttributeError: module object has no attribute G_raster_map_type

Thanks && Regards
Rashad

Hi,

2011/7/21 Mohammed Rashad <mohammedrashadkm@gmail.com>:

error log
data_type = raster.G_raster_map_type('myrast', 'PERMANENT')
AttributeError: `module` object has no attribute `G_raster_map_type`

all raster related procedures has been moved from gislib to the new
rasterlib [1]. See list of renamed fns [2], in this case it's
Rast_map_type() [3].

Martin

[1] http://grass.osgeo.org/programming7/rasterlib.html
[2] http://trac.osgeo.org/grass/wiki/Grass7/RasterLib/ListOfFunctions
[3] http://grass.osgeo.org/programming7/raster_2open_8c.html#ad8873119232e5dddb7b2aa6b62dea923

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