Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-17487

FIWARE.Question.Tech.Fiware Orion: Geoqueries do not work for geojson polygons, only points seem to work.

    Details

      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":

      { "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] ] ] }

      }
      }

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2021-03-12 05:31|CREATED monitor | # answers= 0, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2021-03-12 05:31|CREATED monitor | # answers= 0, accepted answer= False
        Hide
        backlogmanager Backlog Manager added a comment -

        2021-03-13 05:31|UPDATED status: transition Answer| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2021-03-13 05:31|UPDATED status: transition Answer| # answers= 1, accepted answer= False
        Hide
        backlogmanager Backlog Manager added a comment -

        2021-03-14 05:31|UPDATED status: transition Answered| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2021-03-14 05:31|UPDATED status: transition Answered| # answers= 1, accepted answer= False

          People

          • Assignee:
            backlogmanager Backlog Manager
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: