[GRASS-dev] Re: ctypes problem with Vect_open_old

Martin Landa landa.martin at gmail.com
Tue Jan 4 11:56:38 EST 2011


Hi,

2011/1/4 Maris Nartiss <maris.gis at gmail.com>:
> This one should work. One has to be really carefull and track when

No, it's not working.

> map = Map_info()
>
> Vect_open_update(byref(map), "vector", "mapset")

btw, if you need a pointer (to reuse it), it's better to use pointer()
instead of byref()

map_obj = Map_info()
map = pointer(map_obj)

Vect_open_update(map, "vector", "mapset")

Martin

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


More information about the grass-dev mailing list