Opened 13 years ago

Closed 13 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 13 years ago.
patch to implement requested feature
output_file.diff (1.5 KB ) - added by neteler 13 years ago.
please don't compress diffs

Download all attachments as: .zip

Change History (9)

by mlennert, 13 years ago

Attachment: output_file.diff.gz added

patch to implement requested feature

in reply to:  description comment:1 by mlennert, 13 years ago

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

by neteler, 13 years ago

Attachment: output_file.diff added

please don't compress diffs

comment:2 by martinl, 13 years ago

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 by neteler, 13 years ago

Version: unspecifiedsvn-trunk

Works nicely. Please backport.

in reply to:  3 comment:4 by martinl, 13 years ago

Replying to neteler:

Works nicely. Please backport.

Done in r38609.

Martin

in reply to:  2 ; comment:5 by mlennert, 13 years ago

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

in reply to:  5 comment:6 by martinl, 13 years ago

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 by martinl, 13 years ago

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