v.to.db
How GRASS runs Measure Length: v.to.db.
| Engine | GRASS |
|---|---|
| Tool name | v.to.db |
| Interface | cli |
| Implements | Measure Length |
| Variant of | grass-v-to-db |
| Preset | {"option":"length","columns":"length"} |
| Documentation | Not stated |
| Effects | modifies input: no, network: no |
| Notes | Not stated |
| Status | active |
Parameters
| Name | Type | Required | Default | Choices | Note |
|---|---|---|---|---|---|
map | string | yes | Not stated | Not stated | vector name |
layer | string | no | 1 | Not stated | layer name |
type | string | no | point,line,boundary,centroid | point, line, boundary, centroid | multiple values |
option | string | yes | Not stated | cat, area, compact, fd, perimeter, length, count, coor, start, end, sides, query, slope, sinuous, azimuth, bbox | Not stated |
columns | string | yes | Not stated | Not stated | dbcolumn name; multiple values |
units | string | no | Not stated | miles, feet, meters, kilometers, acres, hectares, radians, degrees | Not stated |
query_layer | string | no | 1 | Not stated | layer name |
query_column | string | no | Not stated | Not stated | dbcolumn name |
separator | string | no | pipe | Not stated | separator name |
format | string | yes | plain | plain, json | Not stated |
flag_p | boolean | no | Not stated | Not stated | flag -p |
flag_h | boolean | no | Not stated | Not stated | flag -h |
flag_s | boolean | no | Not stated | Not stated | flag -s |
flag_c | boolean | no | Not stated | Not stated | flag -c |
flag_overwrite | boolean | no | Not stated | Not stated | flag --overwrite |
How it maps to the operation
| Operation parameter | Parameter here | Note |
|---|---|---|
layer | map | Not stated |
unit | units | m = meters; ft = feet; km = kilometers; mi = miles. not supported: us-ft |
Differences from the operation
- Writes into the map's own attribute table (this mapping names the column length).
Harvested by the grass harvester from engine version
8.5.0. Names can change when an engine is harvested again.