3
# must be executed in the GRASS env
4
# test case for Spearfish location
8
from grass.lib import grass
10
if not os.environ.has_key("GISBASE"):
11
print "You must be in GRASS GIS to run this program."
14
rname = 'elevation.dem'
18
grass.G_find_cell2(rname,'')
22
print 'prints 0 if map was found'
24
print 'roads raster map:'
25
print grass.G_raster_map_type('roads',mapset)
27
print 'elevation.dem raster map:'
28
print grass.G_raster_map_type(rname,mapset)