叠置分析(overlay)
POST
/rest/services/geometry/overlay
对给定的两个图形进行指定类型的空间叠置分析结果
请求示例
intersect_相交
{
"srcData": {
"type": "multipolygon",
"coordinates": [
[
[
[
39534163.061373,
3347660.873658
],
[
39536078.193395,
3347660.873658
],
[
39536078.193395,
3346505.714661
],
[
39534163.061373,
3346505.714661
],
[
39534163.061373,
3347660.873658
]
]
]
]
},
"destData": {
"type": "multipolygon",
"coordinates": [
[
[
[
39535845.135001,
3347417.682290
],
[
39538094.655154,
3347417.682290
],
[
39538094.655154,
3346718.507108
],
[
39535845.135001,
3346718.507108
],
[
39535845.135001,
3347417.682290
]
]
]
]
},
"overlayType": "Intersect",
"geoSRS": "EPSG:4527",
"destGeoSRS": "EPSG:4527",
"outSRS": "EPSG:4527"
}
erase_相差
{
"srcData": {
"type": "multipolygon",
"coordinates": [
[
[
[
39534163.061373,
3347660.873658
],
[
39536078.193395,
3347660.873658
],
[
39536078.193395,
3346505.714661
],
[
39534163.061373,
3346505.714661
],
[
39534163.061373,
3347660.873658
]
]
]
]
},
"destData": {
"type": "multipolygon",
"coordinates": [
[
[
[
39535845.135001,
3347417.682290
],
[
39538094.655154,
3347417.682290
],
[
39538094.655154,
3346718.507108
],
[
39535845.135001,
3346718.507108
],
[
39535845.135001,
3347417.682290
]
]
]
]
},
"overlayType": "Erase",
"geoSRS": "EPSG:4527",
"destGeoSRS": "EPSG:4527",
"outSRS": "EPSG:4527"
}
union_相并
{
"srcData": {
"type": "multipolygon",
"coordinates": [
[
[
[
39534163.061373,
3347660.873658
],
[
39536078.193395,
3347660.873658
],
[
39536078.193395,
3346505.714661
],
[
39534163.061373,
3346505.714661
],
[
39534163.061373,
3347660.873658
]
]
]
]
},
"destData": {
"type": "multipolygon",
"coordinates": [
[
[
[
39535845.135001,
3347417.682290
],
[
39538094.655154,
3347417.682290
],
[
39538094.655154,
3346718.507108
],
[
39535845.135001,
3346718.507108
],
[
39535845.135001,
3347417.682290
]
]
]
]
},
"overlayType": "Union",
"geoSRS": "EPSG:4527",
"destGeoSRS": "EPSG:4527",
"outSRS": "EPSG:4527"
}
symmetricalDifference_交集取反
{
"srcData": {
"type": "multipolygon",
"coordinates": [
[
[
[
39534163.061373,
3347660.873658
],
[
39536078.193395,
3347660.873658
],
[
39536078.193395,
3346505.714661
],
[
39534163.061373,
3346505.714661
],
[
39534163.061373,
3347660.873658
]
]
]
]
},
"destData": {
"type": "multipolygon",
"coordinates": [
[
[
[
39535845.135001,
3347417.682290
],
[
39538094.655154,
3347417.682290
],
[
39538094.655154,
3346718.507108
],
[
39535845.135001,
3346718.507108
],
[
39535845.135001,
3347417.682290
]
]
]
]
},
"overlayType": "SymmetricalDifference",
"geoSRS": "EPSG:4527",
"destGeoSRS": "EPSG:4527",
"outSRS": "EPSG:4527"
}
请求参数
Body 参数application/json