<div dir="ltr">Awesome thanks very much. glad I asked, you learn something new every day.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 15, 2022 at 3:19 PM David Strip <<a href="mailto:qgis-user@stripfamily.net">qgis-user@stripfamily.net</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>
<div>Starting with v2.1, ogr2ogr supports
args X_POSSIBLE_NAMES, Y_POSSIBLE_NAMES which are strings with
allowed wildcards (eg, Lon* ), or you can use field_1, field_2,
etc to explicitly give the position of lat/lon.<br>
It's explained on the <a href="https://gdal.org/drivers/vector/csv.html" target="_blank">driver page.</a>
This <a href="https://gis.stackexchange.com/a/276607/4449" target="_blank">StackExchange
</a>post shows csv to shapefile conversion and included Windows
command line syntax for looping over files in a directory.<br>
<br>
On 11/15/2022 12:58 PM, Hugh Kelley wrote:<br>
</div>
<blockquote type="cite">
<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>
</blockquote>
<br>
</div>
</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>