Greetings
How can I check if a certain mapset exists in my active location in a Python Script?
Thanks
Monica
Greetings
How can I check if a certain mapset exists in my active location in a Python Script?
Thanks
Monica
Monica Buescu wrote:
How can I check if a certain mapset exists in my active location in a Python
Script?
grass.script.mapsets(False)
returns a list of mapsets in the current location.
--
Glynn Clements <glynn@gclements.plus.com>
Hi Glynn
I tried grass.script.mapsets but I get this error:
line 59, in main
var=grass.mapsets(False)
AttributeError: ‘module’ object has no attribute ‘mapsets’
previously I had this: import grass.script as grass
Am I doing something wrong?
Thank you Glynn
Monica
On Mon, Jan 31, 2011 at 11:38 AM, Glynn Clements <glynn@gclements.plus.com> wrote:
Monica Buescu wrote:
How can I check if a certain mapset exists in my active location in a Python
Script?grass.script.mapsets(False)
returns a list of mapsets in the current location.
–
Glynn Clements <glynn@gclements.plus.com>
Hi,
2011/2/1 Monica Buescu <monicabuescu1985@gmail.com>:
I tried grass.script.mapsets but I get this error:
line 59, in main
var=grass.mapsets(False)
AttributeError: 'module' object has no attribute 'mapsets'
previously I had this: import grass.script as grass
Am I doing something wrong?
this function has been added quite recently. Update your installation
to 6.4.1 from SVN.
Martin
--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa