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

How can I tell if a point is in a region with tile38 #729

Open
zhengbaowei opened this issue Apr 2, 2024 · 2 comments
Open

How can I tell if a point is in a region with tile38 #729

zhengbaowei opened this issue Apr 2, 2024 · 2 comments

Comments

@zhengbaowei
Copy link

this is my region SET ps p1 OBJECT '{"type":"Polygon","coordinates":[[[120.438089,36.351295],[120.440101,36.351022],[120.440304,36.35047],[120.43795,36.350794],[120.438089,36.351295]]]}',need judgment point[120.439113,36.350892],Is located in p1

@tidwall
Copy link
Owner

tidwall commented Apr 2, 2024

Try the INTERSECTS command.

INTERSECTS ps OBJECT '{"type":"Point","coordinates":[120.439113,36.350892]}'

@zhengbaowei
Copy link
Author

尝试INTERSECTS命令。

INTERSECTS ps OBJECT '{"type":"Point","coordinates":[120.439113,36.350892]}'

This statement should return a boolean type,But what I get back is this (integer) 0
2) (empty list or set)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants