{
"dataSetId":"test_polygon",
"data": [
{
"_id": "1",
"tag": {
"name": "测试数据",
"time":1703952000000
},
"geom": {
"type": "MultiPolygon",
"coordinates": [
[
[
[
117.941851,
35.547573
],
[
117.76441,
35.658074
],
[
117.750271,
35.709814
],
[
117.634607,
35.709332
],
[
117.596915,
35.630463
],
[
117.582439,
35.554147
],
[
117.496253,
35.543029
],
[
117.428539,
35.458624
],
[
117.474756,
35.400959
],
[
117.478874,
35.314375
],
[
117.419219,
35.274003
],
[
117.609854,
35.128135
],
[
117.672526,
35.170475
],
[
117.69885,
35.272575
],
[
117.872582,
35.299261
],
[
117.873038,
35.350248
],
[
117.952951,
35.518741
],
[
117.941851,
35.547573
]
]
]
]
}
}
]
}curl --location -g --request POST 'http://datam.olmap.cn/dm/v1/api/data?eId={{eId}}&ckey={{ckey}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"dataSetId":"test_polygon",
"data": [
{
"_id": "1",
"tag": {
"name": "测试数据",
"time":1703952000000
},
"geom": {
"type": "MultiPolygon",
"coordinates": [
[
[
[
117.941851,
35.547573
],
[
117.76441,
35.658074
],
[
117.750271,
35.709814
],
[
117.634607,
35.709332
],
[
117.596915,
35.630463
],
[
117.582439,
35.554147
],
[
117.496253,
35.543029
],
[
117.428539,
35.458624
],
[
117.474756,
35.400959
],
[
117.478874,
35.314375
],
[
117.419219,
35.274003
],
[
117.609854,
35.128135
],
[
117.672526,
35.170475
],
[
117.69885,
35.272575
],
[
117.872582,
35.299261
],
[
117.873038,
35.350248
],
[
117.952951,
35.518741
],
[
117.941851,
35.547573
]
]
]
]
}
}
]
}'{
"err": "",
"success": true,
"msg": "操作成功",
"data": {
"result": {
"insertedCount": 1,
"insertedIds": {
"0": "4f8e6120-8bc3-11f0-b6c3-3fb3e1af8e56"
}
}
}
}