v.to.db
How GRASS runs Measure Area: v.to.db.
| Engine | GRASS |
|---|---|
| Tool name | v.to.db |
| Interface | cli |
| Implements | Measure Area |
| Preset | {"option":"area","columns":"area"} |
| Documentation | Not stated |
| Effects | modifies input: yes, 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 | m2 = meters; km2 = kilometers; ha = hectares; acre = acres; ft2 = feet |
Differences from the operation
- Writes into the map's own attribute table (the column must exist; this mapping names it area); option also gives length, perimeter, coordinates and more.
Harvested by the grass harvester from engine version
8.5.0. Names can change when an engine is harvested again.