<br><br><div class="gmail_quote">On Thu, Nov 24, 2011 at 7:00 PM, Martin Dobias <span dir="ltr"><<a href="mailto:wonder.sk@gmail.com">wonder.sk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">
<br>
</div>You do not need to reinvent the wheel in order to load a delimited<br>
text layer. You can easily load the data automatically with delimited<br>
text provider, this is a snippet from PyQGIS cookbook:<br>
<br>
uri = "/some/path/file.csv?delimiter=%s&xField=%s&yField=%s" % (";", "x", "y")<br>
vlayer = QgsVectorLayer(uri, "layer_name_you_like", "delimitedtext")<br>
<br>
At least it could be an option - a checkbox for automatic import would help.<br>
<br></blockquote><div><br>Thank you Martin. I will implement it in the next version for sure.<br></div></div><br clear="all"><br>-- <br>Regards<br>Arunmozhi<br>Twitter: @tecoholic<br>Website: <a href="http://arunmozhi.in" target="_blank">http://arunmozhi.in</a><br>
IRC Nick: teco<br><br>