[GRASS-dev] ctypes mystery

Martin Landa landa.martin at gmail.com
Wed Jun 23 08:03:56 EDT 2010


Hi,

2010/6/23 Markus Metz <markus.metz.giswork at googlemail.com>:

[...]
> Just a wild guess, try in wxnviz.py c_double() instead of c_float()
> because Nviz_get_exag_height() wants double pointers, not float
> pointers (confusing: python doc says python float = C double).

ops, right. I completely overlook this issue. Thanks for pointing this out.

> BTW, I get a number of compile errors in
> trunk/gui/wxpython/nviz/change_view.cpp about type conversions. In
> nviz.h, one error about too many arguments:
> include/grass/nviz.h:134: error: too many arguments to function ‘int
> Nviz_set_viewpoint_twist(int)’

C++ nviz component is not used in trunk (replaced by wxnviz.py). I
would suggest to remove it if there are no objections. Another issue
is to backport ctypes interface to devbr6.

Martin

-- 
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa


More information about the grass-dev mailing list