[Qgis-user] multiple csv file import

Salvatore Mellino salvatore.mellino at prismambiente.it
Tue Nov 15 09:44:39 PST 2022


Hello, 
thank you for your suggestion. I am not comfortable with python, but I know that is possible to use a script in qgis. Is there any script capable to do my issue? 

> Il giorno 15 nov 2022, alle ore 18:29, David Strip <qgis-user at stripfamily.net> ha scritto:
> 
>  You might consider ogr2ogr as an alternative approach. You can run this from the command line allowing you to use shell scripts to iterate through all your .csv files. There are also python bindings for ogr2ogr if you're more comfortable with python than shell scripts.
> 
>> On 11/15/2022 9:59 AM, Salvatore Mellino via Qgis-user wrote:
>> Hello, 
>> 
>> thank you for your answer. I have many csv (about 100), so I need an automatic procedure. Maybe a python script... 
>> 
>> Il 15/11/2022 16:55, Nicolas Cadieux ha scritto: 
>>> Hi, 
>>> 
>>> Yes, you can do that very easily using QGIS.  Layer/add layer/add delimited text layer.  Then just export the layer in the format of your choice. You may need to convert the coordinates in decimal degrees (ex 75 05 30.4 -> 75.0917777777778000000 ). 
>>> 
>>> You can do this in Excel using =(A6)+(B6/60)+(C6/3600)+(D6/3600) A= Deg, B= Min, C=Sec, D= Decimal Sec.  Then export to csv. 
>>> 
>>> Nicolas 
>>> 
>>> 
>>>> On 2022-11-15 10:08 a.m., Salvatore Mellino via Qgis-user wrote: 
>>>> Hello, 
>>>> 
>>>> I would like to know if it is possible to import multiple csv files contained in a folder and to convert them in shapefiles (1 for each csv). All csv files are structured as "lat long value" separate by space and without any header line. 
>>>> 
>>>> Thank you for your help! Regards, 
>>>> 
>>>> Salvatore 
>>>> 
> 
> 



More information about the Qgis-user mailing list