[GRASS-dev] Python SWIG

chris carleton w_chris_carleton at hotmail.com
Sat Jun 6 13:17:46 EDT 2009


Hi All,

I've read somewhere (by Glenn, I think) that Python-SWIG might not go much farther with GRASS due to some limitations of the SWIG interface (I'm not expert enough to know either way). Despite that, I can't see another way to program what I want to do with GRASS. So, I was hoping that someone on the list has a full list of currently wrapped GRASS functions so that I know what I have to work with so far. Fortunately, I can just use Python scripting in the module when I don't have direct access to GRASS functions, although that's going to slow it all down. The other question I have is related to raster editing. I need to be able to edit specific cells in a raster map based on coordinate locations passed to the editing function (I can sort of see how to do it using the buffers that hold the row of raster data), but I don't want a whole new map generated every time an edit is made. Is it possible to edit a cell and then just close the map without re-writing the whole matrix? Also, if I'm making say a thousand calls to that function will there be a noticeable lag time because of all the opening and closing of the raster map (i.e. how much time does it take to open and close a raster for reading/editing?). Thanks,

Chris

_________________________________________________________________
Create a cool, new character for your Windows Live™ Messenger. 
http://go.microsoft.com/?linkid=9656621
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-dev/attachments/20090606/4178ca28/attachment.html


More information about the grass-dev mailing list