Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/backbone.js/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 组合GeoJSON_Javascript_Node.js_Geojson - Fatal编程技术网

Javascript 组合GeoJSON

Javascript 组合GeoJSON,javascript,node.js,geojson,Javascript,Node.js,Geojson,我有一些单独的GeoJSON对象,例如 var fc = { "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": { "time": 1369786338000 }, "geometry": { "type": "Point", "

我有一些单独的GeoJSON对象,例如

 var fc = {
    "type": "FeatureCollection",
     "features": [
      {
        "type": "Feature",
        "properties": {
           "time": 1369786338000
         },
        "geometry": {
           "type": "Point",
           "coordinates": [19.026432, 47.49134]
         }
       }, {
        "type": "Feature",
        "properties": {
           "time": 1369786340000
         },
        "geometry": {
           "type": "Point",
           "coordinates": [19.074497, 47.509548]
        }
      }
    ]
  };
我怎样才能把它组合成这样的东西

var combine = {
"type": "FeatureCollection",
 "features": [
  {
    "type": "Feature",
    "properties": {
       "time": [
          1369786338000,
          1369786340000
        ]
     },
    "geometry": {
      "type": "MultiPoint",
       "coordinates": [
          [19.026432, 47.49134],
          [19.074497, 47.509548]
        ]
我正在尝试使用,但出现如下错误

 turf.combine is not a function
当我尝试将GeoJSON组合在一起时。 我已经定义了我的地盘,例如

var turf = require('turf-combine')
多谢各位