Opened 9 years ago

Closed 8 years ago

#2632 closed enhancement (fixed)

option in context menu to export vector attribute table

Reported by: pvanbosgeo Owned by: grass-dev@…
Priority: normal Milestone: 7.2.0
Component: Vector Version: unspecified
Keywords: Cc: attribute
CPU: Unspecified Platform: Unspecified

Description

To export a vector attribute table, one can use v.db.select. No problem, except that it isn't terribly intuitive. Especially for new users, having an option to export the attribute table in the context menu (right mouse click) would make this easier to find.

The name should probably something like "export attribute table", while it could open the v.db.select window (or possibly a simplified version of it).

Attachments (2)

export_attributes.patch (1.5 KB ) - added by mlennert 8 years ago.
v_db_select_simplified_main_tab.patch (1.1 KB ) - added by mlennert 8 years ago.

Download all attachments as: .zip

Change History (12)

comment:1 by neteler, 9 years ago

Milestone: 7.0.17.0.2

Ticket retargeted after 7.0.1 milestone closed

comment:2 by neteler, 9 years ago

Milestone: 7.0.27.0.3

Ticket retargeted after milestone closed

comment:3 by neteler, 9 years ago

Cc: attribute added
Component: DefaultVector

by mlennert, 8 years ago

Attachment: export_attributes.patch added

comment:4 by mlennert, 8 years ago

Try the attached patch. This gives access to the v.db.select GUI, not a simplified version. An option would be to declare this as "Export attributes to csv file" and make separator=comma the default. Otherwise a wrapper module would be needed which provides most options as defaults, but then leaves less flexibility in terms of output formats.

Personally, I would prefer to just provide the standard v.db.select interface.

by mlennert, 8 years ago

comment:5 by mlennert, 8 years ago

I added a second patch that puts the (IMHO) main options of v.db.select (map, column separator, output file) into a "Main choices" tab. I think this should be enough to make exporting attributes easier, without having to code a separate simplified GUI. Not sure if "Main choices" is the best choice of names for that tab, though. Any better ideas are more than welcome.

comment:6 by mlennert, 8 years ago

I applied both patches to trunk for easier testing.

comment:7 by neteler, 8 years ago

Milestone: 7.0.3

Ticket retargeted after milestone closed

comment:8 by neteler, 8 years ago

Milestone: 7.0.4

Ticket retargeted after 7.0.3 milestone closed

comment:9 by martinl, 8 years ago

Milestone: 7.0.47.0.5

comment:10 by martinl, 8 years ago

Milestone: 7.0.57.2.0
Resolution: fixed
Status: newclosed

Changing milestone to 7.2 and closing. Feel free to reopen if needed.

Note: See TracTickets for help on using tickets.