[GRASS-dev] Re: ctypes problem with Vect_open_old

Martin Landa landa.martin at gmail.com
Wed Jan 5 17:19:41 EST 2011


2011/1/4 Martin Landa <landa.martin at gmail.com>:
> something like?
>
> map_obj = Map_info()
> map = pointer(map_obj)
>
> Vect_open_update(map, "a", "")
>
> p = Vect_new_line_struct()
> c = Vect_new_cats_struct()
>
> Vect_append_point(p, 1, 1, 0)
> Vect_cat_set(c, 1, 1)
> print p.contents.n_points
>
> Vect_write_line(map, GV_POINT, p, c)
>
> Vect_build(map)
> Vect_close(map)
>
> No success, btw

seems to be problem with LFS. The script works when GRASS compiled
without LFS. Can anyone confirm it?

Martin

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


More information about the grass-dev mailing list