Mysql retrieve polygon data
Posted
by
dskanth
on Stack Overflow
See other posts from Stack Overflow
or by dskanth
Published on 2011-02-24T06:23:04Z
Indexed on
2011/02/24
7:25 UTC
Read the original article
Hit count: 219
Hi, i have been developing a site that stores spatial data in mysql database, like that of buildings, gardens, etc. in the form of polygons (latitudes and longitudes).
I want to know how to retrieve polygon data in mysql.
I have seen this sample query to insert a polygon data: http://amper.110mb.com/SPAT/mysql_initgeometry2.htm
But now i want to know how to retrieve data from the table, based on certain constraints like:
"where latitude < 9.33 and longitude > 22.4"
Also how do i find whether a point lies inside or outside of a polygon
© Stack Overflow or respective owner