Class: GeoJSONShapesData
Defined in: @tissuumaps-storage/src/geojson/GeoJSONShapesData.ts:7
Implements
ShapesData
Constructors
Constructor
new GeoJSONShapesData(
ids,names,multiPolygons):GeoJSONShapesData
Defined in: @tissuumaps-storage/src/geojson/GeoJSONShapesData.ts:12
Parameters
ids
number[] | undefined
names
string[] | undefined
multiPolygons
MultiPolygon[]
Returns
GeoJSONShapesData
Methods
close()
close():
void
Defined in: @tissuumaps-storage/src/geojson/GeoJSONShapesData.ts:47
Releases all resources held by this data object
Returns
void
Implementation of
ShapesData.close
getIds()
getIds():
number[]
Defined in: @tissuumaps-storage/src/geojson/GeoJSONShapesData.ts:22
Returns an array of item IDs
Returns
number[]
Implementation of
ShapesData.getIds
getNames()
getNames():
string[] |undefined
Defined in: @tissuumaps-storage/src/geojson/GeoJSONShapesData.ts:34
Returns the item names if available, otherwise undefined
Returns
string[] | undefined
Implementation of
ShapesData.getNames
getSize()
getSize():
number
Defined in: @tissuumaps-storage/src/geojson/GeoJSONShapesData.ts:30
Returns the total number of items
Returns
number
Implementation of
ShapesData.getSize
loadMultiPolygons()
loadMultiPolygons(
options?):Promise<MultiPolygon[]>
Defined in: @tissuumaps-storage/src/geojson/GeoJSONShapesData.ts:38
Loads the multi-polygon geometry for all shapes
Parameters
options?
Optional abort signal and progress callback
onProgress?
ProgressCallback
signal?
AbortSignal
Returns
Promise<MultiPolygon[]>
One MultiPolygon per shape, in index order
Implementation of
ShapesData.loadMultiPolygons