[GRASS5] [5.7] v.out.ascii to stdout
Radim Blazek
blazek at itc.it
Wed May 26 09:58:44 EDT 2004
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.
> Changing & to && I get:
>
> G57: > v.out.ascii in=land | wc -l
> writing to stdout
> 2016589.9107143|5433474.7978984
> [...]
> G57: > v.out.ascii in=land | wc -l
> 4750
Wrong, 'type && GV_POINT' is always true, writes out first point of lines.
> Changing to "if ( pnt && !(type & (GV_POINT|GV_CENTROID) ) ) {"
> I get:
>
> G57: > v.out.ascii in=land
> writing to stdout
> 2017617.60219158|5435424.46544081|1
> [...]
> G57: > v.out.ascii in=land | wc -l
> 2308
OK, writes centroids (in this case).
> not sure which is "better" or expected output. Usually I'd think nodes
> were more useful to have exact positions for than centroids..
This I don't understand.
Radim
More information about the grass-dev
mailing list