[GRASS-user] XY trace plots

Hamish hamish_b at yahoo.com
Wed Jun 6 04:14:18 PDT 2012


> Hamish wrote:
> > ps- if any python+ctypes experts want to have a look
> > over it please do...

Markus:
> I get a "funny" message effect (the resulting map looks ok):
> 
> GRASS 6.4.3svn (nc_spm_08): > g.region rast=elevation
> GRASS 6.4.3svn (nc_spm_08): > python r.to.vect.lines.py
> in=elevation
> out=wiggle_lines
> Building topology for vector map <wiggle_lines>...
> Registering primitives...
> 135 primitives registered
> 202500 vertices registered
> Building areas...
>  100%
> 0 areas built
> 0 isles built
> Attaching islands...
> Attaching centroids...
>  100%
> Number of nodes: 270
> Number of primitives: 135
> Number of points: 0
> Number of lines: 135
> Number of boundaries: 0
> Number of centroids: 0
> Number of areas: 0
> Number of isles: 0
> ? complete.       <--- ??
> 
> The map is correctly produced, it must be some issue in the
> ctypes interface.


yes, I saw the same. G_gisinit(argv[0]) is not being accessed/assigned
properly. Does python script+ctypes take care of G_define_module() for
you?


Hamish


More information about the grass-user mailing list