Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The BBox filter does not work properly when filtering around the corner of the map #2061

Closed
kyungtaak opened this issue May 14, 2019 · 1 comment
Assignees
Labels
bug Something isn't working @chart Chart Component and Widget @engine Issues related to engine
Milestone

Comments

@kyungtaak
Copy link
Contributor

Describe the bug
I don't get in-range geometry from the engine when the corner information in the bbox filter spans the edge of the map.

image

To Reproduce

Sample Data
world.csv.txt
ingestion_spec.json.txt

Calling engine query

{
  "queryType": "select.stream",
  "dataSource": {
    "type": "table",
    "name": "world_line"
  },
  "filter": {
    "type": "and",
    "fields": [
      {
        "type": "lucene.spatial",
        "field": "WKT.shape",
        "operation": "bbox_intersects",
        "shapeFormat": "wkt",
        "shapeString": "MULTIPOINT ((180.0 -90.0), (-180.0 90.0))"
      }
    ]
  },
  "columns": [
    "WKT"
  ],
  "virtualColumns": [],
  "descending": false,
  "limit": 5000,
  "intervals": [
    "1900-01-01T00:00:00.0Z/2051-01-01T00:00:00.0Z"
  ]
}

Additional context

@kyungtaak kyungtaak added bug Something isn't working @chart Chart Component and Widget @engine Issues related to engine labels May 14, 2019
@kyungtaak kyungtaak added this to the 3.3.0 milestone May 14, 2019
@navis
Copy link

navis commented May 15, 2019

Bounding box for (-180.0 -90.0), (180.0 90.0) returns empty box.. I don't know it's spec or bug of spatial4j but reverted min/max values for this specific case.

@navis navis closed this as completed May 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working @chart Chart Component and Widget @engine Issues related to engine
Projects
None yet
Development

No branches or pull requests

2 participants