You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To Reproduce
When I SET a plain GeoJson object, then INTERSECTS CIRCLE works as expected:
127.0.0.1:9851> SET key id OBJECT {"type":"LineString", "coordinates":[[0,0], [0,1]]}
{"ok":true,"elapsed":"119.742µs"}
127.0.0.1:9851> INTERSECTS key CIRCLE 0 0 5000
{"ok":true,"objects":[{"id":"id","object":{"type":"LineString","coordinates":[[0,0],[0,1]]}}],"count":1,"cursor":0,"elapsed":"120.72µs"}
127.0.0.1:9851> INTERSECTS key CIRCLE 1 0 5000
{"ok":true,"objects":[{"id":"id","object":{"type":"LineString","coordinates":[[0,0],[0,1]]}}],"count":1,"cursor":0,"elapsed":"91.406µs"}
127.0.0.1:9851> INTERSECTS key CIRCLE 0.5 0 5000
{"ok":true,"objects":[{"id":"id","object":{"type":"LineString","coordinates":[[0,0],[0,1]]}}],"count":1,"cursor":0,"elapsed":"143.802µs"}
However when I SET a GeoJson feature with the same geometry:
127.0.0.1:9851> SET key id OBJECT {"type":"Feature", "geometry":{"type":"LineString", "coordinates":[[0,0], [0,1]]}, "properties":{}}
{"ok":true,"elapsed":"52.473µs"}
The endpoints are matched by an INTERSECTS CIRCLE:
127.0.0.1:9851> INTERSECTS key CIRCLE 0 0 5000
{"ok":true,"objects":[{"id":"id","object":{"type":"Feature","geometry":{"type":"LineString","coordinates":[[0,0],[0,1]]},"properties":{}}}],"count":1,"cursor":0,"elapsed":"89.127µs"}
127.0.0.1:9851> INTERSECTS key CIRCLE 1 0 5000
{"ok":true,"objects":[{"id":"id","object":{"type":"Feature","geometry":{"type":"LineString","coordinates":[[0,0],[0,1]]},"properties":{}}}],"count":1,"cursor":0,"elapsed":"91.617µs"}
But an arbitrary point on the geometry does not:
127.0.0.1:9851> INTERSECTS key CIRCLE 0.5 0 5000
{"ok":true,"objects":[],"count":0,"cursor":0,"elapsed":"53.844µs"}
Expected behavior
I'd expect that plain geometry and features with that geometry should be indistinguishable in terms of matching predicates like INTERSECTS CIRCLE
Operating System (please complete the following information):
RedHat Enterprise Linux 7
Running in tile38/tile38 docker container
The text was updated successfully, but these errors were encountered:
I did push to docker yesterday but the change didn't stick because I forgot a step. 🤦♂️
I made a hotfix moments ago and double checked it. You should be good to go now.
To Reproduce
When I
SET
a plain GeoJson object, thenINTERSECTS CIRCLE
works as expected:However when I
SET
a GeoJson feature with the same geometry:The endpoints are matched by an
INTERSECTS CIRCLE
:But an arbitrary point on the geometry does not:
Expected behavior
I'd expect that plain geometry and features with that geometry should be indistinguishable in terms of matching predicates like
INTERSECTS CIRCLE
Operating System (please complete the following information):
RedHat Enterprise Linux 7
Running in tile38/tile38 docker container
The text was updated successfully, but these errors were encountered: