<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>See the X_POSSIBLE_NAMES and Y_POSSIBLE_NAMES open options of the
CSV driver mentioned at
<a class="moz-txt-link-freetext" href="https://gdal.org/drivers/vector/csv.html#open-options">https://gdal.org/drivers/vector/csv.html#open-options</a></p>
<p>and the last example of
<a class="moz-txt-link-freetext" href="https://gdal.org/drivers/vector/csv.html#examples">https://gdal.org/drivers/vector/csv.html#examples</a><br>
</p>
<p>Even<br>
</p>
<div class="moz-cite-prefix">Le 15/11/2022 à 20:58, Hugh Kelley via
Qgis-user a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CAOrcXHFH8RA4LhS-KrufiPVEL7TgQeHQnZxjGsQuEeWr8JhBjg@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<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"
moz-do-not-send="true" class="moz-txt-link-freetext">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"
moz-do-not-send="true" class="moz-txt-link-freetext">Qgis-user@lists.osgeo.org</a><br>
List info: <a
href="https://lists.osgeo.org/mailman/listinfo/qgis-user"
rel="noreferrer" target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">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" moz-do-not-send="true"
class="moz-txt-link-freetext">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>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</body>
</html>