<html><head></head><body>Agreed. There is a plugin doing this, but of course having it as a standard function is desirable.<br>
Thanks for raising this.<br><br><div class="gmail_quote">Il 9 luglio 2016 12:00:38 EEST, Richard Duivenvoorde <rdmailings@duif.net> ha scritto:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">Hi Devs,<br /><br />Raymond Nijssen had an (I think) intriguing idea:<br /><br />QGIS can open different types of table-data: dbf, excel etc etc<br /><br />But if the excel contains an x,y,wkt column, you have to save it to<br />csv/tsv first, to be able to use the delimited-text-provider to open it<br />as a layer.<br /><br />His idea: can't we use the delimited-text-provider for all tables that<br />are open in QGIS immediately?<br /><br />Had a look into the code<br /><br /><a href="https://github.com/qgis/QGIS/blob/master/src/providers/delimitedtext/qgsdelimitedtextfile.cpp#L583">https://github.com/qgis/QGIS/blob/master/src/providers/delimitedtext/qgsdelimitedtextfile.cpp#L583</a><br /><br />which 'just' looks like a QTextStream:<br /><br /><a href="https://github.com/qgis/QGIS/blob/master/src/providers/delimitedtext/qgsdelimitedtextfile.h#L352">https://github.com/qgis/QGIS/blob/master/src/providers/delimitedtext/qgsdelimitedtextfile.h#L352</a><br /><br />And
according to this:<br /><a href="https://forum.qt.io/topic/63310/how-to-save-a-treeview-as-csv-file-in-qt">https://forum.qt.io/topic/63310/how-to-save-a-treeview-as-csv-file-in-qt</a><br /><br />It is easy to create a textstream from QModel (in which we have the data<br />I think???)...<br /><br />So Question:<br />- (to devs): would this indeed be doable/easy?<br />- (to UI's): should the Delimited Text File dialog be updated then (or<br />only with a 'open excisting table button'?<br />- should we rename the provider to 'table' provider.<br /><br />Comments/Opinions?<br /><br />Regards,<br /><br />Richard Duivenvoorde<br /><hr /><br />Qgis-developer mailing list<br />Qgis-developer@lists.osgeo.org<br />List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br />Unsubscribe: <a
href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a></pre></blockquote></div><br>
-- <br>
Paolo Cavallini<br>
<a href="http://www.faunalia.eu">www.faunalia.eu</a></body></html>