<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi,</p>
<p>I think there are already 2 possibilities to show x,y /wkt or
other geometries for any kind of layers</p>
<p> * Geometry generators</p>
<p> * Virtual layers (no expert, but I guess that's possible)<br>
</p>
So at least read-only this should be straightforward, read-write
maybe with virtual layers (?).<br>
<br>
Matthias<br>
<br>
<div class="moz-cite-prefix">On 07/09/2016 11:34 AM, Raymond Nijssen
wrote:<br>
</div>
<blockquote cite="mid:5780C520.2090202@terglobo.nl" type="cite">
<pre wrap="">Great idea! ;)
Question is where to implement it in the GUI. It overlaps the
functionality in the delimited text reader. Like pointing to the x and y
columns or choosing a column containing wkt.
Maybe it could be a 2 steps process? Step 1 is importing any table and
step 2 is creating a spatial layer from it. But we would loose the quick
"Add delimited text layer" functionality.
Any ideas?
@Paolo, which plugin can do this? XyTools?
Regards,
Raymond
On 09-07-16 11:14, Paolo Cavallini wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Agreed. There is a plugin doing this, but of course having it as a
standard function is desirable.
Thanks for raising this.
Il 9 luglio 2016 12:00:38 EEST, Richard Duivenvoorde
<a class="moz-txt-link-rfc2396E" href="mailto:rdmailings@duif.net"><rdmailings@duif.net></a> ha scritto:
Hi Devs,
Raymond Nijssen had an (I think) intriguing idea:
QGIS can open different types of table-data: dbf, excel etc etc
But if the excel contains an x,y,wkt column, you have to save it to
csv/tsv first, to be able to use the delimited-text-provider to open it
as a layer.
His idea: can't we use the delimited-text-provider for all tables that
are open in QGIS immediately?
Had a look into the code
<a class="moz-txt-link-freetext" 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>
which 'just' looks like a QTextStream:
<a class="moz-txt-link-freetext" 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>
And
according to this:
<a class="moz-txt-link-freetext" 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>
It is easy to create a textstream from QModel (in which we have the data
I think???)...
So Question:
- (to devs): would this indeed be doable/easy?
- (to UI's): should the Delimited Text File dialog be updated then (or
only with a 'open excisting table button'?
- should we rename the provider to 'table' provider.
Comments/Opinions?
Regards,
Richard Duivenvoorde
------------------------------------------------------------------------
Qgis-developer mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
--
Paolo Cavallini
<a class="moz-txt-link-abbreviated" href="http://www.faunalia.eu">www.faunalia.eu</a> <a class="moz-txt-link-rfc2396E" href="http://www.faunalia.eu"><http://www.faunalia.eu></a>
_______________________________________________
Qgis-developer mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
</pre>
</blockquote>
<pre wrap="">
_______________________________________________
Qgis-developer mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Matthias Kuhn
OPENGIS.ch - <a class="moz-txt-link-freetext" href="https://www.opengis.ch">https://www.opengis.ch</a>
Spatial • (Q)GIS • PostGIS • Open Source</pre>
</body>
</html>