<div dir="ltr"><div>David, this was my first thought when i saw this question as well.</div><div><br></div><div>however, I didn't look for very long but I haven't seen a way to tell ogr2ogr to read columns in a csv as the lat/lon and write those as points to the shapefile.  I generally write a csv to postgres as a non-spatial table and then process the lat lon columns with postgis. <br></div><div><br></div><div> Are there arguments for ogr2ogr that can do this?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 15, 2022 at 12:30 PM David Strip via Qgis-user <<a href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    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.<br>
    <br>
    On 11/15/2022 9:59 AM, Salvatore Mellino via Qgis-user wrote:
    <blockquote type="cite">Hello,
      <br>
      <br>
      thank you for your answer. I have many csv (about 100), so I need
      an automatic procedure. Maybe a python script...
      <br>
      <br>
      Il 15/11/2022 16:55, Nicolas Cadieux ha scritto:
      <br>
      <blockquote type="cite">Hi,
        <br>
        <br>
        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 ).
        <br>
        <br>
        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.
        <br>
        <br>
        Nicolas
        <br>
        <br>
        <br>
        On 2022-11-15 10:08 a.m., Salvatore Mellino via Qgis-user wrote:
        <br>
        <blockquote type="cite">Hello,
          <br>
          <br>
          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.
          <br>
          <br>
          Thank you for your help! Regards,
          <br>
          <br>
          Salvatore
          <br>
          <br>
        </blockquote>
      </blockquote>
    </blockquote>
    <br>
    <br>
  </div>

_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr">Hugh Kelley       <br><div><br></div></div></div></div></div></div></div></div>