MySql spatial: `ST_Contains(g1,g2) || ST_Touches(g1, g2)` vs `ST_distance(g1,g2)=0`

198 views Asked by At

I use mysql spatial functions.

I have to understand if points lies withing multipolygon.Birder must be included.

My expriments showed that ST_Contains does not include border of Multipolygon

So for now I have 2 solutions which looks like working:
1. ST_Contains(g1,g2) || ST_Touches(g1, g2)
2. ST_distance(g1,g2)=0

Are that solutions equivalent ?

0

There are 0 answers