[GRASS-user] Python Script- Check if a raster exists

Christian Schwartze christian.schwartze at uni-jena.de
Mon Sep 27 06:39:10 EDT 2010

Try e.g "g.findfile element=vector file=testmap"


From: Helena Herrera 
Sent: Monday, September 27, 2010 12:25 PM
To: grass-user at lists.osgeo.org 
Subject: [GRASS-user] Python Script- Check if a raster exists


I'm doing a python script and, in a process, I need to check if a raster map exists. My idea is, if this map exists I don't need to create otherwise, I need to create it (v.to.rast). Is there a way to check if a map exists in the current mapset?


grass-user mailing list
grass-user at lists.osgeo.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20100927/6b56c385/attachment.html

More information about the grass-user mailing list