mysql - Check whether lat/long combination reside within a polygon -



mysql - Check whether lat/long combination reside within a polygon -

i've been breaking head while. need check whether lat/long position reside within polygon through mysql. according this post should this:

select st_intersects(st_geometryfromtext('point(-33.7507, 151.1445)'), st_geometryfromtext('polygon (( -33.7508 151.1444, -33.7505 151.1447, -33.7507 151.1450, -33.7509 151.1454, -33.7514 151.1449, -33.7508 151.1443, -33.7508 151.1444))'))

however returning me null. ideas? im using mysql 5.6.13

very cool. didn't know mysql had feature. build point, utilize no comma:

'point(-33.7507 151.1445)'

fiddle

mysql polygon

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -