Skip to content

KBE3D / KBCore / turf / collectionOf

函数: collectionOf()

collectionOf(featureCollection: FeatureCollection<any>, type: string, name: string): void

Function

Enforce expectations about types of FeatureCollection inputs for Turf. Internally this uses geojsonType to judge geometry types.

参数

featureCollection

FeatureCollection<any>

a FeatureCollection for which features will be judged

type

string

expected GeoJSON type

name

string

name of calling function

返回

void

抛出

if value is not the expected type.

KBE3D @3.0.0 Copyright © 2024-present KBE3D