geoarrow/geoarrow-rs

Roundtrip FlatGeobuf write/read gives table in backwards row order

Opened this issue · 0 comments

          Well it looks like the roundtrip flatgeobuf test is reading back the table in _backwards_ row order!
[src/io/flatgeobuf/writer.rs:76] new_table = GeoTable {
    schema: Schema {
        fields: [
            Field {
                name: "u8",
                data_type: UInt8,
                is_nullable: true,
                metadata: {},
            },
            Field {
                name: "string",
                data_type: Utf8,
                is_nullable: true,
                metadata: {},
            },
            Field {
                name: "geometry",
                data_type: Extension(
                    "geoarrow.point",
                    FixedSizeList(
                        Field {
                            name: "xy",
                            data_type: Float64,
                            is_nullable: false,
                            metadata: {},
                        },
                        2,
                    ),
                    None,
                ),
                is_nullable: true,
                metadata: {},
            },
        ],
        metadata: {},
    },
    batches: [
        Chunk {
            arrays: [
                UInt8[3, 2, 1],
                Utf8Array[baz, bar, foo],
                FixedSizeListArray[[2, 3], [1, 2], [0, 1]],
            ],
        },
    ],
    geometry_column_index: 2,
}

Originally posted by @kylebarron in #196 (comment)