{
"srcDataset":
{
"datasourceName": "HuBei",
"datasetName": "dltb2020"
},
"srcDatasetFilter":
{
"where": "dlbm = '0201' OR dlbm = '0202'",
"geometry":
{
"type":"Polygon",
"coordinates":[[[39534640.8139820099,3345625.0066242237],[39534640.8139820099,3348795.9912395477],
[39538068.2273349762,3348795.9912395477],[39538068.2273349762,3345625.0066242237],[39534640.8139820099,3345625.0066242237]]]
},
"SpatialRel": "Intersects"
},
"refDataset":
{
"datasourceName": "HuBei",
"datasetName": "dltb2021"
},
"refDatasetFilter":
{
"geometry":
{
"type":"Polygon",
"coordinates":[[[39534640.8139820099,3345625.0066242237],[39534640.8139820099,3348795.9912395477],
[39538068.2273349762,3348795.9912395477],[39538068.2273349762,3345625.0066242237],[39534640.8139820099,3345625.0066242237]]]
},
"SpatialRel": "Intersects"
},
"operateType":"Intersect",
"returnDetail":true,
"returnRefResultType": 0,
"returnSrcResultType": 0,
"outSRS":"EPSG:4326",
"returnGeoRelatedOnly":true,
"startRecord":0,
"returnCount":200,
"aysn":false
}
curl --location --request POST '/rest/services//spatialanalysis/relation' \
--header 'Content-Type: application/json' \
--data-raw '{
"srcDataset":
{
"datasourceName": "HuBei",
"datasetName": "dltb2020"
},
"srcDatasetFilter":
{
"where": "dlbm = '\''0201'\'' OR dlbm = '\''0202'\''",
"geometry":
{
"type":"Polygon",
"coordinates":[[[39534640.8139820099,3345625.0066242237],[39534640.8139820099,3348795.9912395477],
[39538068.2273349762,3348795.9912395477],[39538068.2273349762,3345625.0066242237],[39534640.8139820099,3345625.0066242237]]]
},
"SpatialRel": "Intersects"
},
"refDataset":
{
"datasourceName": "HuBei",
"datasetName": "dltb2021"
},
"refDatasetFilter":
{
"geometry":
{
"type":"Polygon",
"coordinates":[[[39534640.8139820099,3345625.0066242237],[39534640.8139820099,3348795.9912395477],
[39538068.2273349762,3348795.9912395477],[39538068.2273349762,3345625.0066242237],[39534640.8139820099,3345625.0066242237]]]
},
"SpatialRel": "Intersects"
},
"operateType":"Intersect",
"returnDetail":true,
"returnRefResultType": 0,
"returnSrcResultType": 0,
"outSRS":"EPSG:4326",
"returnGeoRelatedOnly":true,
"startRecord":0,
"returnCount":200,
"aysn":false
}'
{
"resultcode": "success",
"time": 0.343,
"result": {
"refResultFeatures": "{Geojson Feature}",
"srcResultFeatures": "{Geojson Feature}",
"detail": [
{
"reference": "[id1,id2]",
"source": 1,
"count": 2
},
{
"reference": "[id4]",
"source": 2,
"count": 1
},
{
"reference": [],
"source": 3,
"count": 0
}
]
}
}