On Thu, Nov 24, 2011 at 7:00 PM, Martin Dobias <[email protected]> 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
_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to