<div dir="ltr">I realize I left out the INTERLEAVING, ie. <div><br></div><div>ogr2ogr ~/fromgdal.arrow ogr/data/arrow/from_paleolimbot_geoarrow/polygon-default.ipc -lco GEOMETRY_ENCODING=GEOARROW_INTERLEAVED<br></div><div><br></div><div>but still, I get these list<item elements rather than their rings/vertices/geoarrow.point type names: </div><div><br></div><div><nanoarrow_array_stream struct<row_num: int32, geometry: geoarrow.polygon{list<item: list<item: fixed_size_list(2)<xy: double>>>}>><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 8, 2024 at 12:19 AM Michael Sumner <<a href="mailto:mdsumner@gmail.com">mdsumner@gmail.com</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">When I investigate the schema in one of the test files<div><br></div><div>ogr/data/arrow/from_paleolimbot_geoarrow/polygon-default.ipc<br></div><div><br></div><div>I see expected list<polygons and list<rings and xy etc. I'm printing this by using R nanoarrow::read_arrow, or from poLayer->GetArrowStream and I get the same output: </div><div><br></div><div><nanoarrow_array_stream struct<row_num: int32, geometry: geoarrow.polygon{list<rings: list<vertices: geoarrow.point{fixed_size_list(2)<xy: double>}>>}>><br><div><br></div><div>If I write a new .arrow with GDAL </div><div><br></div><div>ogr2ogr ~/fromgdal.arrow ogr/data/arrow/from_paleolimbot_geoarrow/polygon-default.ipc<br></div><div><br></div><div>the stream schema looks like this: </div><div><br></div><div><nanoarrow_array_stream struct<row_num: int32, geometry: geoarrow.polygon{list<item: list<item: struct<x: double, y: double>>>}>><br></div><div><br></div><div>and from nanoarrow I see</div><div><br></div><div>nanoarrow::read_nanoarrow("~/fromgdal.arrow")<br>Error in read_nanoarrow.character("~/fromgdal.arrow") :<br> array_stream->get_schema(): [29] Expected >= 1330795077 bytes of remaining data but found 2266 bytes in buffer<br></div><div><br></div><div>Are we in-between moves regarding specifications, or something? I'm having good results generally and this seems like a problem in the Arrow driver for write. </div><div><br></div><div>Cheers, Mike</div><div><br></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr">Michael Sumner<br>Research Software Engineer<br>Australian Antarctic Division<br>Hobart, Australia<br>e-mail: <a href="mailto:mdsumner@gmail.com" target="_blank">mdsumner@gmail.com</a></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr">Michael Sumner<br>Research Software Engineer<br>Australian Antarctic Division<br>Hobart, Australia<br>e-mail: <a href="mailto:mdsumner@gmail.com" target="_blank">mdsumner@gmail.com</a></div></div>