例如,我有geojson文件,其特性如下所示。在
在{ “type”:“FeatureCollection”, “工作宽度”:20, “特点”:[ { “type”:“功能”, “几何体”:{ “type”:“点”, “坐标”:[ 28.4766美元, 12.5645456 ] } } ]在
如何将属性添加到上面的文件中,如下所示。在
在{ “type”:“FeatureCollection”, “工作宽度”:20, “特点”:[ { “type”:“功能”, “几何体”:{ “type”:“点”, “坐标”:[ 28.4766美元, 12.5645456 ] }, “属性”:{ “fieldID”:“2115145”, “segmentId”:“255c2s4c”, “速度”:21.4586954, “标高”:52.4586642, “时间”:“2018-05” } } ] }在
数据结构只是一个常规的python字典,因此您可以像平常一样更新它:
相关问题 更多 >
编程相关推荐