Opened 11 years ago

Closed 11 years ago

#710 closed enhancement (fixed)

v.db.select: allow output to a file

Reported by: mlennert Owned by: martinl
Priority: normal Milestone: 6.5.0
Component: Vector Version: svn-trunk
Keywords: v.db.select file Cc: grass-dev@…
CPU: Unspecified Platform: Unspecified

Description

A file= parameter in v.db.select (and optionally db.select) would be nice to allow direct export of table to csv from the GUI, without having to go through the ogr trick. Currently you can use v.db.select with redirection at the command line, but not in the GUI.

Moritz

Attachments (2)

output_file.diff.gz (749 bytes) - added by mlennert 11 years ago.
patch to implement requested feature
output_file.diff (1.5 KB) - added by neteler 11 years ago.
please don't compress diffs

Download all attachments as: .zip

Change History (9)

Changed 11 years ago by mlennert

Attachment: output_file.diff.gz added

patch to implement requested feature

comment:1 in reply to:  description Changed 11 years ago by mlennert

Replying to mlennert:

A file= parameter in v.db.select (and optionally db.select) would be nice to allow direct export of table to csv from the GUI, without having to go through the ogr trick. Currently you can use v.db.select with redirection at the command line, but not in the GUI.

Actually not that difficult (inspired from r.stats): diff against svn-develbranch6 attached.

Moritz

Changed 11 years ago by neteler

Attachment: output_file.diff added

please don't compress diffs

comment:2 Changed 11 years ago by martinl

Cc: grass-dev@… added
Owner: changed from grass-dev@… to martinl
Status: newassigned

Slightly changed patch applied in trunk, r38606. I have changed "output" to "file". If reasonable I will backport it to devbr6.

Martin

comment:3 Changed 11 years ago by neteler

Version: unspecifiedsvn-trunk

Works nicely. Please backport.

comment:4 in reply to:  3 Changed 11 years ago by martinl

Replying to neteler:

Works nicely. Please backport.

Done in r38609.

Martin

comment:5 in reply to:  2 ; Changed 11 years ago by mlennert

Replying to martinl:

Slightly changed patch applied in trunk, r38606. I have changed "output" to "file". If reasonable I will backport it to devbr6.

Thanks a lot. Should this also be implemented in db.select ?

Moritz

comment:6 in reply to:  5 Changed 11 years ago by martinl

Replying to mlennert:

Replying to martinl:

Slightly changed patch applied in trunk, r38606. I have changed "output" to "file". If reasonable I will backport it to devbr6.

Thanks a lot. Should this also be implemented in db.select ?

Done in r38876 (and backported to devbr6 in r38877). Can we close the ticket now?

Martin

comment:7 Changed 11 years ago by martinl

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.