I need to write location, mapset and information in defined directory which has write permision. How can I do this? Presently the location and mapset are written at GISDBASE directory. I would like to change some other location in a directory with write permission . Currently I have given grassrc6 as following
GISDBASE:E:ATMC
LOCATION_NAME:gcslocation
MAPSET:PERMANENT
GRASS_GUI:wxp
char* grassdbpath=getenv("GISDBASE");
after define_module();
My code like this:
G_setenv("GISDBASE",grassdbpath);
G_setenv("LOCATION_NAME","GCSLOCATION");
G_setenv("MAPSET","PERMANENT");
G_setenv("GRASS_GUI","wxpython");
G_gisinit(argv[0]);//errorm message"Location :**** not found