Appearance
KBE3D / KBCore / turf / booleanValid
函数: booleanValid()
booleanValid(
feature:Geometry|Feature<any,GeoJsonProperties>):boolean
Function
booleanValid checks if the geometry is a valid according to the OGC Simple Feature Specification.
参数
feature
GeoJSON Feature or Geometry
Geometry | Feature<any, GeoJsonProperties>
返回
boolean
true/false
示例
ts
var line = turf.lineString([[1, 1], [1, 2], [1, 3], [1, 4]]);
turf.booleanValid(line); // => true
turf.booleanValid({foo: "bar"}); // => false