Add point to vector map at given position: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 7: | Line 7: | ||
* Add new point to the vector map <tt>(x=100, y=100, layer=1, category=1)</tt>: | * Add new point to the vector map <tt>(x=100, y=100, layer=1, category=1)</tt>: | ||
v.edit -n map=<map> tool=add input=- << EOF | v.edit -n map=<map> tool=add input=- << EOF | ||
P 1 1 | P 1 1 | ||
100 100 | 100 100 | ||
1 1 | 1 1 | ||
EOF | EOF | ||
Revision as of 10:36, 24 September 2011
Q: How to add a new point to the vector map at given position?
A:
- CLI
- Add new point to the vector map (x=100, y=100, layer=1, category=1):
v.edit -n map=<map> tool=add input=- << EOF P 1 1 100 100 1 1 EOF
- Insert new record to the attribute table of the vector map (if required):
echo "insert into <map> values(1, ...)" | db.execute input=-
- wxGUI