Skip to content

KBE3D / KBCore / turf / featureOf

函数: featureOf()

featureOf(feature: Feature<any>, type: string, name: string): void

Function

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

参数

feature

Feature<any>

a feature with an expected geometry type

type

string

expected GeoJSON type

name

string

name of calling function

返回

void

抛出

error if value is not the expected type.

KBE3D @3.0.0 Copyright © 2024-present KBE3D