我想使用这个json文件,它还不是GeoJSON文件,但是我注意到它包含多个功能,而没有一个令我感到困惑的功能。我想问一下您是否知道可以将所有Feature / FeatureCollections合并到一个有效的GeoJSON文件中的工具,以便可以将其用于D3.js?原始文件在这里,我已经摆脱了geojson不需要的东西。
这是GeoJson的摘录,它很大,所以我不只是片段
{"points": [{
"type": "FeatureCollection",
"features": [{
"type": "Feature",
"geometry": {
"coordinates": [41.9773865, 36.3372536],
"type": "Point"
},
"properties": {
"attacks": 1,
"location": "Sinjar",
"date": "2015-10-16"
}
}, {
"type": "Feature",
"geometry": {
"coordinates": [43.4873886, 34.9301605],
"type": "Point"
},
"properties": {
"attacks": 2,
"location": "Baiji",
"date": "2015-10-16"
}
}, {
"type": "Feature",
"geometry": {
"coordinates": [42.4509315, 36.3707008],
"type": "Point"
},
"properties": {
"attacks": 3,
"location": "Tal Afar",
"date": "2015-10-16"
}
}, {
"type": "Feature",
"geometry": {
"coordinates": [43.76667, 35.31667],
"type": "Point"
},
"properties": {
"attacks": 1,
"location": "Hawija",
"date": "2015-10-16"
}
}]
}, {
"type": "FeatureCollection",
"features": [{
"type": "Feature",
"geometry": {
"coordinates": [43.7820587, 33.3516083],
"type": "Point"
},
"properties": {
"attacks": 4,
"location": "Fallujah",
"date": "2015-04-24"
}
}, {
"type": "Feature",
"geometry": {
"coordinates": [43.2637405, 33.4324112],
"type": "Point"
},
"properties": {
"attacks": 1,
"location": "Ramadi",
"date": "2015-04-24"
}
}, {
"type": "Feature",
"geometry": {
"coordinates": [43.1170998, 36.3246002],
"type": "Point"
},
"properties": {
"attacks": 5,
"location": "Mosul",
"date": "2015-04-24"
}
}, {
"type": "Feature",
"geometry": {
"coordinates": [38.3535004, 36.8908997],
"type": "Point"
},
"properties": {
"attacks": 4,
"location": "Kobane",
"date": "2015-04-24"
}
}, {
"type": "Feature",
"geometry": {
"coordinates": [42.4509315, 36.3707008],
"type": "Point"
},
"properties": {
"attacks": 1,
"location": "Tal Afar",
"date": "2015-04-24"
}
}]
}, {
"type": "FeatureCollection",
"features": [{
"type": "Feature",
"geometry": {
"coordinates": [43.7820587, 33.3516083],
"type": "Point"
},
"properties": {
"attacks": 1,
"location": "Fallujah",
"date": "2015-09-09"
}
}, {
"type": "Feature",
"geometry": {
"coordinates": [43.2637405, 33.4324112],
"type": "Point"
},
"properties": {
"attacks": 3,
"location": "Ramadi",
"date": "2015-09-09"
}
}, {
"type": "Feature",
"geometry": {
"coordinates": [41.9773865, 36.3372536],
"type": "Point"
},
"properties": {
"attacks": 1,
"location": "Sinjar",
"date": "2015-09-09"
}
}, {
"type": "Feature",
"geometry": {
"coordinates": [43.4873886, 34.9301605],
"type": "Point"
},
"properties": {
"attacks": 1,
"location": "Baiji",
"date": "2015-09-09"
}
}, {
"type": "Feature",
"geometry": {
"coordinates": [42.4509315, 36.3707008],
"type": "Point"
},
"properties": {
"attacks": 2,
"location": "Tal Afar",
"date": "2015-09-09"
}
},
您对如何解决此问题并获得正确的GeoJSON文件有一些想法吗?