我厌倦了所有可用的csv到geojson的选项,但所有选项都适用于有限的功能。
我正根据CDR值绘制热图,因此我需要根据10000个特征的cdr值更改每个特征的颜色属性。
{
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
9.0114910478323,
45.35880131440966
],
[
9.014491488013135,
45.35880097314403
],
[
9.0144909480813,
45.35668565341486
],
[
9.011490619692509,
45.356685994655464
],
[
9.0114910478323,
45.35880131440966
]
]
]
},
"type": "Feature",
"id": 0,
"properties": {
"stroke": "#80ff80",
"stroke-width": 4,
"stroke-opacity": 1,
"fill": "#ff0000",
"fill-opacity": 1,
"cellId": 1,
"Call-In Volume": 1000,
"Call-Out Volume": 1000,
"SMS-Sent Volume": 1000,
"SMS-Received Volume": 1000,
"Data Volume": 500
}
},
答案 0 :(得分:0)
除了采用每个功能并根据CDR值修改该功能的填充之外,没有其他有效的方法。