<div dir="ltr">Correct, just for 3.15 and up.<div><br></div><div>Dan</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Wed, Jan 7, 2026 at 10:18 AM Regina Obe <<a href="mailto:lr@pcorp.us">lr@pcorp.us</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div class="msg5449687819203925338"><div lang="EN-US" style="overflow-wrap: break-word;"><div class="m_5449687819203925338WordSection1"><p class="MsoNormal">So this would just be for GEOS 3.15 and above right?  So projects would still need to change if GEOS >= 3.15 to know if curve support is available.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">That’s fine.  But backporting would not be fine.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><div style="border-width:medium medium medium 1.5pt;border-style:none none none solid;border-color:currentcolor currentcolor currentcolor blue;padding:0in 0in 0in 4pt"><div><div style="border-width:1pt medium medium;border-style:solid none none;border-color:rgb(225,225,225) currentcolor currentcolor;padding:3pt 0in 0in"><p class="MsoNormal"><b><span style="font-size:11pt;font-family:Calibri,sans-serif">From:</span></b><span style="font-size:11pt;font-family:Calibri,sans-serif"> Daniel Baston <<a href="mailto:dbaston@gmail.com" target="_blank">dbaston@gmail.com</a>> <br><b>Sent:</b> Wednesday, January 7, 2026 10:07 AM<br><b>To:</b> GEOS Development List <<a href="mailto:geos-devel@lists.osgeo.org" target="_blank">geos-devel@lists.osgeo.org</a>><br><b>Subject:</b> Curve support in GEOS C API<u></u><u></u></span></p></div></div><p class="MsoNormal"><u></u> <u></u></p><div><div><p class="MsoNormal">Hi,<br><br>I have been incrementally adding curve support in GEOS, for example in <a href="https://github.com/libgeos/geos/pull/1347" target="_blank">https://github.com/libgeos/geos/pull/1347</a>.  I've been thinking about the best way for applications such as QGIS/PostGIS/GDAL to integrate this functionality.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Currently, these applications linearize all geometries before sending them to GEOS. That will not be necessary for GEOSNode and a list of functions that will likely increase over multiple GEOS releases. It seems cumbersome for applications to rely on GEOS version checks to know if linearization is needed, so I think GEOS should offer an ability to automatically linearize inputs and curvify outputs where needed. The parameters for this conversion (and whether to perform it all) could be held by the context handle, and controlled with functions like GEOSContext_setCurveToLine([ DISABLED / STEP_DEGREES / MAX_DEVIATION ]) and GEOSContext_setLineToCurve([ DISABLED / SOME_OTHER_TOLERANCE]). I would also expose a GEOSCurveToLine(GEOSGeometry*, params) and GEOSLineToCurve(GEOSGeometry*, params).<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">If needed, we could also provide a capabilities function that would take a function name (or pointer?) and report whether the function supports curves in the current GEOS version.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Does this seem like a reasonable approach?<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Dan<u></u><u></u></p></div></div></div></div></div></div></blockquote></div>