空间关系判断(isRelation)
POST
/rest/services/geometry/isrelation
两个几何对象是否为指定空间关系。
请求示例
Intersect
{
"SpatialRel": "Intersect",
"geometry1": {
"type": "multipolygon",
"coordinates": [
[
[
[
39534163.061373,
3347660.873658
],
[
39536078.193395,
3347660.873658
],
[
39536078.193395,
3346505.714661
],
[
39534163.061373,
3346505.714661
],
[
39534163.061373,
3347660.873658
]
]
]
]
},
"geoSRS1":"EPSG:4527",
"geometry2": {
"type": "multipolygon",
"coordinates": [
[
[
[
39535845.135001,
3347417.682290
],
[
39538094.655154,
3347417.682290
],
[
39538094.655154,
3346718.507108
],
[
39535845.135001,
3346718.507108
],
[
39535845.135001,
3347417.682290
]
]
]
]
},
"geoSRS2":"EPSG:4527"
}
EnvelopeIntersect
{
"SpatialRel": "EnvelopeIntersect",
"geometry1": {
"type": "multipolygon",
"coordinates": [
[
[
[
39534163.061373,
3347660.873658
],
[
39536078.193395,
3347660.873658
],
[
39536078.193395,
3346505.714661
],
[
39534163.061373,
3346505.714661
],
[
39534163.061373,
3347660.873658
]
]
]
]
},
"geoSRS1":"EPSG:4527",
"geometry2": {
"type": "multipolygon",
"coordinates": [
[
[
[
39535845.135001,
3347417.682290
],
[
39538094.655154,
3347417.682290
],
[
39538094.655154,
3346718.507108
],
[
39535845.135001,
3346718.507108
],
[
39535845.135001,
3347417.682290
]
]
]
]
},
"geoSRS2":"EPSG:4527"
}
Touches
{
"SpatialRel": "Touches",
"geometry1": {
"type": "multipolygon",
"coordinates": [
[
[
[
39534163.061373,
3347660.873658
],
[
39536078.193395,
3347660.873658
],
[
39536078.193395,
3346505.714661
],
[
39534163.061373,
3346505.714661
],
[
39534163.061373,
3347660.873658
]
]
]
]
},
"geoSRS1":"EPSG:4527",
"geometry2": {
"type": "multipolygon",
"coordinates": [
[
[
[
39536078.193395,
3347660.873658
],
[
39537078.193395,
3347660.873658
],
[
39537078.193395,
3346505.714661
],
[
39536078.193395,
3346505.714661
],
[
39536078.193395,
3347660.873658
]
]
]
]
},
"geoSRS2":"EPSG:4527",
}
Overlaps
{
"SpatialRel": "Overlaps",
"geometry1": {
"type": "multipolygon",
"coordinates": [
[
[
[
39534163.061373,
3347660.873658
],
[
39536078.193395,
3347660.873658
],
[
39536078.193395,
3346505.714661
],
[
39534163.061373,
3346505.714661
],
[
39534163.061373,
3347660.873658
]
]
]
]
},
"geoSRS1":"EPSG:4527",
"geometry2": {
"type": "multipolygon",
"coordinates": [
[
[
[
39535845.135001,
3347417.682290
],
[
39538094.655154,
3347417.682290
],
[
39538094.655154,
3346718.507108
],
[
39535845.135001,
3346718.507108
],
[
39535845.135001,
3347417.682290
]
]
]
]
},
"geoSRS2":"EPSG:4527"
}
Crosses
{
"SpatialRel": "Crosses",
"geometry1": {
"type": "LineString",
"coordinates": [
[
39533570.904916,
3347045.926657
],
[
39535078.904916,
3347045.926657
]
]
},
"geoSRS1":"EPSG:4527",
"geometry2": {
"type": "multipolygon",
"coordinates": [
[
[
[
39534163.193395,
3347660.873658
],
[
39537078.193395,
3347660.873658
],
[
39537078.193395,
3346505.714661
],
[
39534163.193395,
3346505.714661
],
[
39534163.193395,
3347660.873658
]
]
]
]
},
"geoSRS2":"EPSG:4527"
}
Within
{
"SpatialRel": "Within",
"geometry1": {
"type": "multipolygon",
"coordinates": [
[
[
[
39534163.061373,
3347660.873658
],
[
39536078.193395,
3347660.873658
],
[
39536078.193395,
3346505.714661
],
[
39534163.061373,
3346505.714661
],
[
39534163.061373,
3347660.873658
]
]
]
]
},
"geoSRS1":"EPSG:4527",
"geometry2": {
"type": "multipolygon",
"coordinates": [
[
[
[
39533678.193395,
3348660.873658
],
[
39537078.193395,
3348660.873658
],
[
39537078.193395,
3345505.714661
],
[
39533678.193395,
3345505.714661
],
[
39533678.193395,
3348660.873658
]
]
]
]
},
"geoSRS2":"EPSG:4527"
}
Contains
{
"SpatialRel": "Contains",
"geometry1": {
"type": "multipolygon",
"coordinates": [
[
[
[
39533678.193395,
3348660.873658
],
[
39537078.193395,
3348660.873658
],
[
39537078.193395,
3345505.714661
],
[
39533678.193395,
3345505.714661
],
[
39533678.193395,
3348660.873658
]
]
]
]
},
"geoSRS1":"EPSG:4527",
"geometry2": {
"type": "multipolygon",
"coordinates": [
[
[
[
39534163.061373,
3347660.873658
],
[
39536078.193395,
3347660.873658
],
[
39536078.193395,
3346505.714661
],
[
39534163.061373,
3346505.714661
],
[
39534163.061373,
3347660.873658
]
]
]
]
},
"geoSRS2":"EPSG:4527"
}
Disjoint
{
"SpatialRel": "Disjoint",
"geometry1": {
"type": "multipolygon",
"coordinates": [
[
[
[
39534163.061373,
3347660.873658
],
[
39536078.193395,
3347660.873658
],
[
39536078.193395,
3346505.714661
],
[
39534163.061373,
3346505.714661
],
[
39534163.061373,
3347660.873658
]
]
]
]
},
"geoSRS1":"EPSG:4527",
"geometry2": {
"type": "multipolygon",
"coordinates": [
[
[
[
39536678.193395,
3347660.873658
],
[
39537078.193395,
3347660.873658
],
[
39537078.193395,
3346505.714661
],
[
39536678.193395,
3346505.714661
],
[
39536678.193395,
3347660.873658
]
]
]
]
},
"geoSRS2":"EPSG:4527"
}
Equals
{
"SpatialRel": "Equals",
"geometry1": {
"type": "multipolygon",
"coordinates": [
[
[
[
39534163.061373,
3347660.873658
],
[
39536078.193395,
3347660.873658
],
[
39536078.193395,
3346505.714661
],
[
39534163.061373,
3346505.714661
],
[
39534163.061373,
3347660.873658
]
]
]
]
},
"geoSRS1":"EPSG:4527",
"geometry2": {
"type": "multipolygon",
"coordinates": [
[
[
[
39534163.061373,
3347660.873658
],
[
39536078.193395,
3347660.873658
],
[
39536078.193395,
3346505.714661
],
[
39534163.061373,
3346505.714661
],
[
39534163.061373,
3347660.873658
]
]
]
]
},
"geoSRS2":"EPSG:4527"
}
InteriorIntersect
{
"SpatialRel": "InteriorIntersect",
"geometry1": {
"type": "multipolygon",
"coordinates": [
[
[
[
39534163.061373,
3347660.873658
],
[
39536078.193395,
3347660.873658
],
[
39536078.193395,
3346505.714661
],
[
39534163.061373,
3346505.714661
],
[
39534163.061373,
3347660.873658
]
]
]
]
},
"geoSRS1":"EPSG:4527",
"geometry2": {
"type": "multipolygon",
"coordinates": [
[
[
[
39535845.135001,
3347417.682290
],
[
39538094.655154,
3347417.682290
],
[
39538094.655154,
3346718.507108
],
[
39535845.135001,
3346718.507108
],
[
39535845.135001,
3347417.682290
]
]
]
]
},
"geoSRS2":"EPSG:4527"
}
请求参数
Body 参数application/json