<div dir="ltr">Ok. I made that change and it appears to work.<br><br>Latest code available here: <a href="https://github.com/klassenjs/gdal/tree/esrijson-curves" target="_blank">https://github.com/klassenjs/<wbr>gdal/tree/esrijson-curves</a><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 2, 2018 at 1:56 PM, Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@spatialys.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">> <br>
> In the first two cases (without OLCCurveGeometries set) I see<br>
> curveToLineString is being called when there are curves in the data, but<br>
> not on every result page (again curves are relatively rare in the dataset).<br>
<br>
</span>ok, then replace the call to OGRMemLayer::SetFeature() with <br>
OGRMemLayer::ISetFeature() in ogrgeojsonlayer.cpp to shortcut the <br>
linearization that is done by the generic OGRLayer::SetFeature()<br>
<br>
And you can then remove OLCCurveGeometries<br>
<span class=""><br>
<br>
> In the last two cases (with OLCCurveGeometries set) I see<br>
> curveToLineString is being called with a different back trace (related<br>
> to OGRGeometryFactory::<wbr>organizePolygons):<br>
<br>
</span>That one is fine. It is an implementation detail of organizePolygons()<br>
<div class="HOEnZb"><div class="h5"><br>
-- <br>
Spatialys - Geospatial professional services<br>
<a href="http://www.spatialys.com" rel="noreferrer" target="_blank">http://www.spatialys.com</a><br>
</div></div></blockquote></div><br></div>