Skip to content

geodalib / core/src / getGeometryCollectionFromBinaryGeometries

Function: getGeometryCollectionFromBinaryGeometries()

getGeometryCollectionFromBinaryGeometries(geometryType, binaryFeaturesChunks, wasm, fixPolygon?, convertToUTM?): Promise<GeometryCollection>

Defined in: core/src/geometry/binary-geometry.ts:32

Creates a GeoDa GeometryCollection from binary geometry features

Parameters

geometryType

BinaryGeometryType

The type of geometry to create

binaryFeaturesChunks

BinaryFeatureCollection[]

Array of binary feature collections. See BinaryFeatureCollection in @loaders.gl/schema

wasm

GeoDaInterface

The initialized GeoDa WASM module

fixPolygon?

boolean

convertToUTM?

boolean

Returns

Promise<GeometryCollection>

A GeoDa geometry collection

Throws

If WASM module is not initialized or geometry type is unknown