草皮到几何形状
将任意 geojson 转换为几何对象
turf.to-geometries(geojson)
 获取任意 GeoJSON 对象并将其转换为 Geometry 或 GeometryCollection
参数
范围
类型
描述
geojson
 特征,几何,特征集合,几何集合
要转换的 geojson
例子
 var poly = {
  "type" : "Feature" ,
  "properties" : {
    "fill" : "#0f0"
  } ,
  "geometry" : {
    "type" : "Polygon" ,
    "coordinates" : [ [
      [ - 122.801742 , 45.48565 ] ,
      [ - 122.801742 , 45.60491 ] ,
      [ - 122.5847
                                    
                                    
                                        
                                            1