[GRASS-dev] RE: [GRASS-user] Question with Python-SWIG example [SEC=UNCLASSIFIED]

Glynn Clements glynn at gclements.plus.com
Tue May 18 12:48:32 EDT 2010


Martin Landa wrote:

> > I've already replaced the SWIG bindings in 7.0 with the ctypesgen
> > version.
> 
> trying ctypesgen version I have problem with G_find_raster2()
> 
> mapset = grass.G_find_raster2("elevation", "")
> print mapset
> 
> WARNING: Illegal filename <�pT�>. Character <> not allowed.

Odd. Can you try it under GDB and check what arguments
G_find_raster2() is getting?

Also, are you calling G_gisinit() first?

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-user mailing list