Convert points to lines: Difference between revisions
Jump to navigation
Jump to search
m (fix template url key) |
m (prettify) |
||
Line 4: | Line 4: | ||
Spearfish example: | Spearfish example: | ||
<source lang="bash"> | |||
v.out.ascii archsites fs=, where="cat=1 or cat= 3" | v.out.ascii archsites fs=, where="cat=1 or cat= 3" | ||
593493,4914730,1 | 593493,4914730,1 | ||
Line 10: | Line 10: | ||
# so: | # so: | ||
v.out.ascii archsites fs=, where="cat=1 or cat= 3" | cut -d',' -f1,2 | v.in.lines in=- out=myline fs=, | v.out.ascii archsites fs=, where="cat=1 or cat= 3" | cut -d',' -f1,2 | \ | ||
v.in.lines in=- out=myline fs=, | |||
v.category in=myline out=line_with_cat option=add | v.category in=myline out=line_with_cat option=add | ||
</source> | |||
[[Category: FAQ]] | [[Category: FAQ]] |
Revision as of 06:36, 2 July 2010
Q: Is there a way to construct a vector line(s) map connecting selected points?
A: You can use v.in.lines for that. The input can be generated with v.out.ascii.
Spearfish example:
v.out.ascii archsites fs=, where="cat=1 or cat= 3"
593493,4914730,1
589860,4922000,3
# so:
v.out.ascii archsites fs=, where="cat=1 or cat= 3" | cut -d',' -f1,2 | \
v.in.lines in=- out=myline fs=,
v.category in=myline out=line_with_cat option=add