Details
-
Type: Monitor
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:
Description
Created question in FIWARE Q/A platform on 11-03-2021 at 15:03
Please, ANSWER this question AT https://stackoverflow.com/questions/66585276/fiware-orion-geoqueries-do-not-work-for-geojson-polygons-only-points-seem-to-w
Question:
Fiware Orion: Geoqueries do not work for geojson polygons, only points seem to work
Description:
I am having issues with a geo query, it seems only to work if the stored entity location geojson type is of type "Point", but not for polygons.
I am running Orion 2.5.2 in docker
I tested both near
https://orion/v2/entities/?type=Building&georel=near;maxDistance:2000&geometry=point&coords=51.706774495,8.776277548
and also intersects/coveredBy:
https://orion/v2/entities/?type=Building&georel=intersects&coords=51.70683451303916,8.77602696418762;51.706462195326104,8.776386380195618;51.70663838176868,8.776847720146177;51.706965820787424,8.776482939720154;51.70683451303916,8.77602696418762&geometry=polygon
but orion always returns empty results for the example entry:
{
"id": "urn:ngsi-ld:Building:1",
"type": "Building",
"location": {
"type": "geojson",
"value":
}
}
Activity
- All
- Comments
- History
- Activity
- Transitions