Opened 12 months ago

Last modified 12 months 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 Changed 12 months ago by neteler

Milestone: 7.8.3

comment:2 Changed 12 months ago by neteler

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.