Appearance
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.
