[gdal-dev] OGRLayer::WriteArrowBatch() and CreateFeature() mutually exclusive in the same session
Chris Toney
jctoney at gmail.com
Sun May 10 19:46:42 PDT 2026
Hi,
I'm trying to understand implications of OGRLayer::WriteArrowBatch():
>This method and CreateFeature() are mutually exclusive in the same session.
The context is binding code where the user could potentially call
either of these methods at any point during the session.
Does "session" refer to the layer or dataset instance, or the GDAL
session itself?
In tests with GPKG, using WriteArrowBatch() followed by
CreateFeature() worked and didn't cause any obvious problems. Should
binding code guard against this in general?
Similarly, CreateFieldFromArrowSchema() and CreateField() are mutually
exclusive in the same session. Is there any issue with using
CreateField() and WriteArrowBatch() in the same session?
Thanks.
Chris
More information about the gdal-dev
mailing list