[GRASS-dev] Re: ctypes problem with Vect_open_old

Maris Nartiss maris.gis at gmail.com
Tue Jan 4 12:02:16 EST 2011


Works here just fine.

GRASS 6.5 r44853
~AMD64 2.6.36
Python 2.6.6 [GCC 4.4.4]

Maris.


2011/1/4, Martin Landa <landa.martin at gmail.com>:
> 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