[Qgis-developer] Save Vector Layer in QGIS through OGR with Value Relations
Neumann, Andreas
a.neumann at carto.net
Wed Apr 6 05:37:46 PDT 2016
Maybe QGIS could automatically create a VRT file or temporary virtual
layer in the background that automatically replaces the content of the
columns that have value relation widgets with the corresponding text
values?
Would this be a solution or are there more elegant ways to solve that
problem?
Thanks,
Andreas
On 2016-04-06 14:19, Neumann, Andreas wrote:
> Hi,
>
> Our users frequently ask for Spreadsheet export (xlsx, ods). This works well with GDAL 2.x.
>
> However, we have the problem with value relations. For a traditional value relation, in the main table we use integer codes, while the textual values are in a linked table. In QGIS this is nicely replaced with a readable text by the widget and in the attribute table. In print composer we can use the get_feature() and attribute() expressions to get to the text values.
>
> Could the OGR based export to spreadsheets be improved to optionally replace the original integer codes with their text based values at export, for columns where there are value relations? Would this be feasible to implement as an option in QGIS? Would we need to change OGR for that?
>
> Thanks for any ideas on that issue,
>
> Andreas
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20160406/9e489233/attachment.html>
More information about the Qgis-developer
mailing list