Pieter Roggemans
Pieter Roggemans
I suppose use_arrow by default doesn't treat this any better, or does it? -> based on my own test in the context of #269, use_arrow has the same problems except...
> Ah right, the issue without arrow is associated to a `DataLayerError: Could not iterate over features: Non closed ring detected.` because `OGR_GEOMETRY_ACCEPT_UNCLOSED_RING` was set to "NO", so unrelated, sorry...
Ok, I understand now. The variable name implies that you specify if you want to Accept unclosed rings or not. So if you set it to "NO", this means you...
@tfardet do you open an issue in https://github.com/OSGeo/gdal/issues for this?
For GML (~WFS), GDAL automatically tries to determine the data types, but sometimes this goes ~wrong. The easiest option is to disable this by specifying the configuration option [GML_FIELDTYPES=ALWAYS_STRING](https://gdal.org/en/latest/drivers/vector/gml.html#configuration-options). Sample...
Another option that I'm aware of (but never really used) that might be closer to what you are looking for is to use the system of [GFS files](https://gdal.org/en/latest/drivers/vector/gml.html#syntax-of-gfs-files). It is...
I was planning to do some more follow up on this to explore your first possible solution as well (have it automagically be correct) but - what are the odds...
I think this issue can be closed, as it was solved in GDAL a while ago as mentioned [in this comment](https://github.com/geopandas/geopandas/issues/3431#issuecomment-2386302119)?
Related: https://github.com/qgis/QGIS/issues/37510 and https://github.com/qgis/QGIS/issues/19695
> using OGR_G_ForceTo() with OGR_GT_GetLinear() is an alternative to OGRSetNonLinearGeometriesEnabledFlag() @rouault what is the approach to use when the arrow API is used to read the data?