<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Michael,</p>
    <p>my understanding of
      <a class="moz-txt-link-freetext" href="https://geoarrow.org/format.html#memory-layouts">https://geoarrow.org/format.html#memory-layouts</a> is that what
      writes OGR is supposed to be fine since they mentionned types like
      '<code>List<List<FixedSizeList<double>[2]>>'</code>.
      Perhaps I've missed something or nanoarrow has stricter
      expectations? CC'ing Dewey Dunnington<br>
    </p>
    <p>Even<br>
    </p>
    <div class="moz-cite-prefix">Le 07/10/2024 à 15:23, Michael Sumner
      via gdal-dev a écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:CAAcGz98S5Jw24ZYKWNhXuA9dgL1RWVd6oJ7oLrkq9mR4gfGsXQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <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" moz-do-not-send="true"
            class="moz-txt-link-freetext">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" moz-do-not-send="true"
                    class="moz-txt-link-freetext">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"
            moz-do-not-send="true" class="moz-txt-link-freetext">mdsumner@gmail.com</a></div>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
  </body>
</html>