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


import os
import sys
gbase = os.getenv("GISBASE")
pypath = os.path.join(gbase,'etc','gui','wxpython','gui_modules')
sys.path.append(pypath)
pypath = os.path.join(gbase,'etc','python')
sys.path.append(pypath)
import globalvar
grassPath = os.path.join(globalvar.ETCDIR, "python")
sys.path.append(grassPath)
from grass.lib import gis as grasslib
from grass.lib import raster as raster

cellhd = grasslib.Cell_head()
if (raster.Rast_get_cellhd('lsat5_1987_20', 'landsat', cellhd))!=0 :
    print "error1"


error log:
 -> if (raster.Rast_get_cellhd('lsat5_1987_20', 'landsat', cellhd))!=0 :
WindowsEror: exception: access violation writing 0x0000000
-- 
Thanks && Regards
Rashad
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to