上传者: 42134117 
                                    |
                                    上传时间: 2022-01-06 09:48:55
                                    |
                                    文件大小: 6KB
                                    |
                                    文件类型: -
                                
                            
                                
                            
                                草皮到几何形状
将任意 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