[Qgis-developer] My first QGIS plugin

aruntheguy at gmail.com aruntheguy at gmail.com
Thu Nov 24 10:20:51 EST 2011


On Thu, Nov 24, 2011 at 7:00 PM, Martin Dobias <wonder.sk at gmail.com> wrote:

>
> You do not need to reinvent the wheel in order to load a delimited
> text layer. You can easily load the data automatically with delimited
> text provider, this is a snippet from PyQGIS cookbook:
>
> uri = "/some/path/file.csv?delimiter=%s&xField=%s&yField=%s" % (";", "x",
> "y")
> vlayer = QgsVectorLayer(uri, "layer_name_you_like", "delimitedtext")
>
> At least it could be an option - a checkbox for automatic import would
> help.
>
>
Thank you Martin. I will implement it in the next version for sure.


-- 
Regards
Arunmozhi
Twitter: @tecoholic
Website: http://arunmozhi.in
IRC Nick: teco
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20111124/4b817ab0/attachment.html


More information about the Qgis-developer mailing list