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
ids
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
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
The item IDs
Implementation of
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
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
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