[Qgis-developer] Python script about 'Add delimited text'

Jiaqiu Wang jiaqiuwang at gmail.com
Wed May 15 03:34:26 PDT 2013


Hello all,

Thanks, Rafael.

Following Rafael's post and QGIS cookbook, I solved the issue.

Attached is my script to read and convert .csv to .shp. I would like to
share with you. Thanks for the help.

Best wishes,
Jiaqiu

On 14/05/2013 16:53, "Rafael Varela Pet" <rafael.varela at gmail.com> wrote:

>2013/5/14 Jiaqiu Wang <jiaqiuwang at gmail.com>:
>
>> I read some posts about how to import 'delimited text' using plugin in
>> QGIS.
>>
>> I have plenty of .csv files to cope with. Do you know how to cope with
>>it
>> using python script ? Thank you very much for the help !
>
>You can use both the "delimited text" or the OGR providers. In my
>experience, the delimited text plugin is more flexible (for example,
>you can exclude lines at the beginning of the file) but it has some
>issues in QGIS 1.8 (see http://hub.qgis.org/issues/7493)
>
>As Benoît said you should check the cookbook. Also, you might find
>useful the examples I've included in issue 7493.
>
>Best regards,
>-- 
>Rafael Varela

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ConvertCSVtoSHP.py
Type: text/x-python-script
Size: 627 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20130515/8b63d56d/attachment.bin>


More information about the Qgis-developer mailing list