<div dir="ltr"><div>I don't know a lot about gdal but what if your call was just:</div><div><br></div><div>geom.Buffer(6, ["JOIN_STYLE=MITRE"])</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 4, 2024 at 3:55 PM Martin Landa via gdal-dev <<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@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 dir="ltr">Hi all,<div><br></div><div>in the documentation [1] is mentioned:</div><div><br></div><div>"""</div><div>Buffer(Geometry self, double distance, char ** options)→ Geometry<br></div><div>"""</div><div><br></div><div>where the options argument points to [2]. But</div><div><br></div><div>"""</div><div>geom.Buffer(6, options=["JOIN_STYLE=MITRE"])<br></div><div>"""</div><div><br></div><div>fails with</div><div><br></div><div>"""</div><div>  File "/usr/lib/python3.11/site-packages/osgeo/ogr.py", line 6350, in Buffer<br>    return _ogr.Geometry_Buffer(self, *args, **kwargs)<br>           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>TypeError: 'options' is an invalid keyword argument for Geometry_Buffer()</div><div>"""<br></div><div><br></div><div>So is there any possibility to use OGR_G_BufferEx's options in the Python API?</div><div><br></div><div>Thanks a lot for your help, Martin</div><div><br></div><div>[1] <a href="https://gdal.org/en/latest/api/python/vector_api.html#osgeo.ogr.Geometry" target="_blank">https://gdal.org/en/latest/api/python/vector_api.html#osgeo.ogr.Geometry</a></div><div>[2] <a href="https://gdal.org/en/latest/api/vector_c_api.html#_CPPv414OGR_G_BufferEx12OGRGeometryHd12CSLConstList" target="_blank">https://gdal.org/en/latest/api/vector_c_api.html#_CPPv414OGR_G_BufferEx12OGRGeometryHd12CSLConstList</a><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr">Martin Landa<div><a href="https://geomatics.fsv.cvut.cz/en/employees/martin-landa/" target="_blank">https://geomatics.fsv.cvut.cz/en/employees/martin-landa/</a><br><a href="http://gismentors.cz/mentors/landa" target="_blank">http://gismentors.cz/mentors/landa</a></div></div></div></div></div>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div>