Hi all, I wonder what is a valid location and what is a valid mapset. The lib/init/grass.py file says:
def is_mapset_valid(full_mapset): return os.access(os.path.join(full_mapset, "WIND"), os.R_OK) def is_location_valid(gisdbase, location): return os.access(os.path.join(gisdbase, location, "PERMANENT", "DEFAULT_WIND"), os.F_OK) This is what I've done based on the code which was there before refactoring. I wonder if it is correct. If I need to switch to a mapset, I want the region to be editable, so I need os.W_OK in that case. On the other hand, is WIND file needed? Isn't it created automatically from DEFAULT_WIND? And further, is DEFAULT_WIND the right requirement for a valid PERMANENT mapset? Are some PROJ_* files needed? Thanks, Vaclav
_______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev