[Backlogmanager] [FIWARE-JIRA] (HELP-17487) [fiware-stackoverflow] Fiware Orion: Geoqueries do not work for geojson polygons, only points seem to work

Fernando Lopez (JIRA) jira-help-desk at jira.fiware.org
Mon Mar 15 08:39:00 CET 2021


     [ https://jira.fiware.org/browse/HELP-17487?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fernando Lopez resolved HELP-17487.
-----------------------------------
    Resolution: Done

> [fiware-stackoverflow] Fiware Orion: Geoqueries do not work for geojson polygons, only points seem to work
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: HELP-17487
>                 URL: https://jira.fiware.org/browse/HELP-17487
>             Project: Help-Desk
>          Issue Type: Monitor
>          Components: FIWARE-TECH-HELP
>            Reporter: Backlog Manager
>            Assignee: Backlog Manager
>              Labels: fiware, fiware-orion
>
> Created question in FIWARE Q/A platform on 11-03-2021 at 15:03
> {color: red}Please, ANSWER this question AT{color} 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": {
>       "type": "Polygon",
>       "coordinates": [
>         [
>           [8.776530571, 51.706858417],
>           [8.776277548, 51.706774495],
>           [8.776343457, 51.706697699],
>           [8.77633707, 51.706695601],
>           [8.776363068, 51.706665196],
>           [8.776369454, 51.706667303],
>           [8.776457838, 51.706563935],
>           [8.776710906, 51.706647506],
>           [8.776620847, 51.706753038],
>           [8.776627233, 51.706755145],
>           [8.776605064, 51.706781115],
>           [8.776598678, 51.706779008],
>           [8.776530571, 51.706858417]
>         ]
>       ]
>     }
>   }
> }



--
This message was sent by Atlassian JIRA
(v6.4.1#64016)


More information about the Backlogmanager mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy