<div dir="auto"><div dir="auto">These references may be helpful:</div><div dir="auto"><br></div><a href="https://geopandas.org/en/stable/docs/user_guide/io.html" target="_blank" rel="noreferrer">https://geopandas.org/en/stable/docs/user_guide/io.html</a><div dir="auto"><br></div><div dir="auto"><a href="https://geopandas.org/en/stable/docs/reference/api/geopandas.points_from_xy.html">https://geopandas.org/en/stable/docs/reference/api/geopandas.points_from_xy.html</a></div><div dir="auto"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 16, 2022, 7:14 PM Emily Soth <<a href="mailto:esoth@stanford.edu" target="_blank" rel="noreferrer">esoth@stanford.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>I am trying to create a geopackage from a CSV of point coordinates making use of the X_POSSIBLE_NAMES and Y_POSSIBLE_NAMES open options on the CSV driver. <br></div><div><br></div><div>I have tried a few things (details are in a <a href="https://gist.github.com/emlys/60db94cb4017a78219a1aa1dadc0914d" rel="noreferrer noreferrer" target="_blank">gist</a>). To summarize, I can only set the open options when opening as a gdal.Dataset, but then I cannot copy that back into a vector format.</div><div><br></div><div>In the source code it looks like open options can be passed to the CSV driver's Open function (<a href="https://github.com/OSGeo/gdal/blob/35c07b18316b4b6d238f6d60b82c31e25662ad27/ogr/ogrsf_frmts/csv/ogrcsvdriver.cpp#L142-L167" rel="noreferrer noreferrer" target="_blank">source</a>) but I don't know how to use this from the python API since the python ogr.Driver.Open function doesn't accept open options unlike gdal.OpenEx. <br></div><div><br></div><div>Thank you!</div><div>- Emily<br></div></div>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" rel="noreferrer noreferrer" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div>