get_data = (arrowTable) => {
var geometryColumn = arrowTable.getChild('GEOMETRY')
console.log('checking geometry columns from 0 and 1')
console.log(geometryColumn.data[0])
console.log(geometryColumn.data[1])
var polygonIndices = geometryColumn.data[0].valueOffsets
var ringIndices = geometryColumn.getChildAt(0).data[0].valueOffsets
var flatCoordinateVector = geometryColumn.getChildAt(0).getChildAt(0).getChildAt(0)
var flatCoordinateArray = flatCoordinateVector.data[0].values
const resolvedIndices = new Int32Array(polygonIndices.length);
for (let i = 0; i < resolvedIndices.length; ++i) {
resolvedIndices[i] = ringIndices[polygonIndices[i]]
}
var data = {
length: arrowTable.numRows,
startIndices: resolvedIndices,
attributes: {
getPolygon: { value: flatCoordinateArray, size: 2 }
}
}
return data
}