Skip to main content

Class: ParquetShapesData

Defined in: @tissuumaps-storage/src/parquet/ParquetShapesData.ts:4

Shapes data of a GeoParquet file, fully loaded up front

Implements​

Constructors​

Constructor​

new ParquetShapesData(geometry, ids, names): ParquetShapesData

Defined in: @tissuumaps-storage/src/parquet/ParquetShapesData.ts:9

Parameters​

geometry​

ShapesGeometry

ids​

IDArray

names​

string[] | undefined

Returns​

ParquetShapesData

Methods​

close()​

close(): void

Defined in: @tissuumaps-storage/src/parquet/ParquetShapesData.ts:38

Releases all resources held by this data object

Returns​

void

Implementation of​

ShapesData.close


getIds()​

getIds(): IDArray

Defined in: @tissuumaps-storage/src/parquet/ParquetShapesData.ts:22

Returns an array of item IDs

IDs are either integers, held by an integer typed array or by 64-bit floats (safe integers only), or strings, held by a plain array (see IDArray). The returned array is owned by this data object: callers must not modify it, and every call returns the very same array (see ItemsData). IDs are expected to be unique, which is not checked.

Returns​

IDArray

The item IDs

Implementation of​

ShapesData.getIds


getNames()​

getNames(): string[] | undefined

Defined in: @tissuumaps-storage/src/parquet/ParquetShapesData.ts:30

Returns the item names if available, otherwise undefined

Optional: data types that never carry item names need not implement it.

The returned array is owned by this data object: callers must not modify it, and every call returns the very same array (see ItemsData).

Returns​

string[] | undefined

The item names, or undefined if not available

Implementation of​

ShapesData.getNames


getSize()​

getSize(): number

Defined in: @tissuumaps-storage/src/parquet/ParquetShapesData.ts:26

Returns the total number of items

Returns​

number

The item count

Implementation of​

ShapesData.getSize


loadGeometry()​

loadGeometry(): Promise<ShapesGeometry>

Defined in: @tissuumaps-storage/src/parquet/ParquetShapesData.ts:34

Loads the geometry for all shapes

Returns​

Promise<ShapesGeometry>

A promise that resolves to the loaded shapes geometry

Implementation of​

ShapesData.loadGeometry