Skip to content

Commit 7d2a64c

Browse files
authored
add missing fn (#39)
1 parent 14f23d6 commit 7d2a64c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/utils.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,18 @@ export function validateMultiLineStringType(
439439
return true;
440440
}
441441

442+
export function validateMultiPolygonType(
443+
type: arrow.DataType
444+
): type is Polygon {
445+
// Assert the outer vector is a List
446+
assert(arrow.DataType.isList(type));
447+
448+
// Assert its inner vector is a linestring layout
449+
validatePolygonType(type.children[0].type);
450+
451+
return true;
452+
}
453+
442454
export function getListNestingLevels(data: arrow.Data): number {
443455
let nestingLevels = 0;
444456
if (arrow.DataType.isList(data.type)) {

0 commit comments

Comments
 (0)