Opened 4 years ago

Last modified 4 years ago

#3990 new enhancement

v.to.db: add a way to control output precision

Reported by: jidanni Owned by: grass-dev@…
Priority: trivial Milestone: 7.8.3
Component: Database Version: unspecified
Keywords: Cc:
CPU: Unspecified Platform: Unspecified

Description

v.to.db could add a way to control precision.

$ grass ...TC46 --exec v.to.db -p map=Qingfu_st 
cat|length
1|0.157112134436172

e.g., the user might not be interested in nanometers, etc.

Change History (2)

comment:1 by neteler, 4 years ago

Milestone: 7.8.3

comment:2 by neteler, 4 years ago

While I am not sure if it is worth it to cut off precision, it could be done in a way as v.out.ascii offers it:

  precision   Number of significant digits (floating point only)
              options: 0-32
              default: 8
Note: See TracTickets for help on using tickets.