I am trying to insert spatial data in MySQL using the following statement but even though query is executed successfully, the table does not show any data.
Table Name : geo Column name : g type : Geometry
Query:
SET @g = 'POLYGON((72.79230192816932 18.94774395435967,72.79227877224074 18.94774197280634,72.79228473707543 18.94767850389454,72.79230789299416 18.94768048544693,72.79230192816932 18.94774395435967))';
INSERT INTO geom(g)VALUES (GEOMFROMTEXT(@g));
AS you can see polygon is closed, still table does not show anything. I tried even POLYFROMTEXT but even that is giving the same output.
I intend to check whether a point lie inside this polygon or not. But the polygon itself is not getting inserted. Please advise as I am new to Spatial in MySQL. MySQL version : 5.6.21