可以说我有一个如下所示的 json 数据集
{"item": 1,"shape_type":"abc","outer_coordinates_arr":[{"x":78.51,"y":80.76},{"x":80.64,"y":80.76},{"x":80.64,"y":81.19},{"x":83.14,"y":81.19},{"x":83.14,"y":80.76},{"x":84.14,"y":80.76},{"x":84.14,"y":89.69},{"x":78.51,"y":89.69},{"x":78.51,"y":80.76}]}
{"item": 2,"shape_type":"xyz","outer_coordinates_arr":[{"x":99.51,"y":80.76},{"x":80.64,"y":80.76},{"x":80.64,"y":81.19},{"x":83.14,"y":81.19},{"x":83.14,"y":80.76},{"x":84.14,"y":80.76}]}
outer_coordinates
我想通过使用 geospark 作为输入来生成多边形。而且,我的预期输出如下:
物品 | 形状类型 | 多边形 |
---|---|---|
2 | xyz | 多边形((99.51 80.76、80.64 80.76、80.64 81.19、83.14 81.19、83.14 80.76、84.14 80.76、99.51 80.76)) |
1 | 美国广播公司 | 多边形((78.51 80.76、80.64 80.76、80.64 81.19、83.14 81.19、83.14 80.76、84.14 80.76、84.14 89.69、78.51 89.69、78.51 80.76)) |
你能请任何人帮助我吗?提前致谢