tile38 icon indicating copy to clipboard operation
tile38 copied to clipboard

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

Open zhengbaowei opened this issue 1 year ago • 2 comments

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

zhengbaowei avatar Apr 02 '24 01:04 zhengbaowei

Try the INTERSECTS command.

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

tidwall avatar Apr 02 '24 01:04 tidwall

尝试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)

zhengbaowei avatar Apr 02 '24 02:04 zhengbaowei