Opened 5 years ago

Closed 3 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 4 years ago.
v_db_select_simplified_main_tab.patch (1.1 KB) - added by mlennert 4 years ago.

Download all attachments as: .zip

Change History (12)

comment:1 Changed 4 years ago by neteler

Milestone: 7.0.17.0.2

Ticket retargeted after 7.0.1 milestone closed

comment:2 Changed 4 years ago by neteler

Milestone: 7.0.27.0.3

Ticket retargeted after milestone closed

comment:3 Changed 4 years ago by neteler

Cc: attribute added
Component: DefaultVector

Changed 4 years ago by mlennert

Attachment: export_attributes.patch added

comment:4 Changed 4 years ago by mlennert

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.

Changed 4 years ago by mlennert

comment:5 Changed 4 years ago by mlennert

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 Changed 4 years ago by mlennert

I applied both patches to trunk for easier testing.

comment:7 Changed 4 years ago by neteler

Milestone: 7.0.3

Ticket retargeted after milestone closed

comment:8 Changed 4 years ago by neteler

Milestone: 7.0.4

Ticket retargeted after 7.0.3 milestone closed

comment:9 Changed 4 years ago by martinl

Milestone: 7.0.47.0.5

comment:10 Changed 3 years ago by martinl

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.