> 5.7's v.out.ascii produces no output when output= isn't specified.
> (i.e. -> stdout)
>
> line 35 of grass51/vector/v.out.ascii/b2a.c
> if ( pnt && !(type & GV_POINT) ) continue;
>
>
> That should that be ..!(type && GV_POINT) right?
>
> I'd guess so, but the bitwise stuff isn't my forte.
That's correct, I think, did you get a wrong output?
Maybe better !(type & (GV_POINT|GV_CENTROID) ) ?
Without the change I get no output:
G57: > v.out.ascii in=land
writing to stdout
G57: >
same for maps with only areas or maps with only lines.
G57: > v.build land
Building topology ...
4749 primitives registered
2307 areas built
2306 isles built
Topology was built.
Number of nodes : 4748
Number of primitives: 4749
Number of points : 0
Number of lines : 0
Number of boundaries: 2442
Number of centroids : 2307
Number of areas : 2307
Number of isles : 2306
not sure which is "better" or expected output. Usually I'd think nodes
were more useful to have exact positions for than centroids..
On Wed, 26 May 2004 15:58:44 +0200
Radim Blazek <blazek@itc.it> wrote:
On Tuesday 18 May 2004 13:15, Hamish wrote:
> > That's correct, I think, did you get a wrong output?
> > Maybe better !(type & (GV_POINT|GV_CENTROID) ) ?
>
> Without the change I get no output:
>
> G57: > v.out.ascii in=land
> writing to stdout
> G57: >
>
> same for maps with only areas or maps with only lines.
Correct, no points.
Perhaps we should add a "WARNING: no point data" message in that case?