{
"dataSetId":"test_polygon",
"upsert":true,
"data": [
{
"_id": "2",
"tag": {
"name": "测试数据3"
},
"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 PATCH 'http://datam.olmap.cn/dm/v1/api/data?eId={{eId}}&ckey={{ckey}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"dataSetId":"test_polygon",
"upsert":true,
"data": [
{
"_id": "2",
"tag": {
"name": "测试数据3"
},
"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": {
"matchedCount": 1,
"modifiedCount": 1,
"upsertedCount": 0,
"upsertedIds": {}
}
}
}