例如,我有一个带有以下要素的GeoJSON文件。
{ "type": "FeatureCollection", "working_width": 20, "features": [ { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ 28.4766, 12.5645456 ] } } ] }
如何像下面展示的那样为上述文件添加属性。
{ "type": "FeatureCollection", "working_width": 20, "features": [ { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ 28.4766, 12.5645456 ] }, "properties": { "fieldID": "2115145", "segmentId": "255c2s4c", "speed": 21.4586954, "elevation": 52.4586642, "time": "2018-05" } } ] }
{ "type": "FeatureCollection", "working_width": 20, "features": [ { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ 28.4766, 12.5645456 ] } } ] }
如何像下面展示的那样为上述文件添加属性。
{ "type": "FeatureCollection", "working_width": 20, "features": [ { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ 28.4766, 12.5645456 ] }, "properties": { "fieldID": "2115145", "segmentId": "255c2s4c", "speed": 21.4586954, "elevation": 52.4586642, "time": "2018-05" } } ] }