是否有人尝试使用GEO_INTERSECTS来匹配GEO_MULTIPOLYGON? TestP集合只有一个文档(带有MultiPolygon几何的geoJSON)。然后我们在AQL下执行,但是即使多边形在该TestP集合/几何中也没有结果。
MutiPolygon几何具有两个多边形 第一多边形有一个洞 第二个无孔多边形 enter image description here
LET polygon = GEO_POLYGON([[-122.89021,48.07839],[-122.89000,48.07839],[-122.89000,48.07738],[-122.89021,48.07738],[-122.89021,48.07839]])
FOR x in TestP
FILTER GEO_INTERSECTS(polygon, x.geometry)
RETURN x
2,我还尝试使用以下ACL查询在ArangoDB QUERIES UI上对其进行仿真:
LET Area = {
"type": "Feature",
"properties": {
"ID" :"Polygon1"
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[-122.89521,48.07939],
[-122.88500,48.07939],
[-122.88500,48.07738],
[-122.89521,48.07738],
[-122.89521,48.07939]
],
[
[-122.88901,48.07939],
[-122.88701,48.07939],
[-122.88701,48.07738],
[-122.88901,48.07738],
[-122.88901,48.07939]
]
]
}
}
LET polygon = GEO_POLYGON([[-122.89021,48.07839],[-122.89000,48.07839],[-122.89000,48.07738],[-122.89021,48.07738],[-122.89021,48.07839]])
RETURN GEO_INTERSECTS(Area.geometry, polygon)
它使用警告恢复“空”结果:
Warnings:
[10], 'in function 'GEO_INTERSECTS()': Subsequent loop not a hole in polygon'
Result:
[
null
]
似乎ArangoDB-GEO_INTERSECTS不支持带孔的多边形。正确吗?