That fuctions are implementation of OpenGIS for spatial data. I'm using it with MySQL 4.1.0-alfa.
Check this:
mysql> CREATE TABLE t1 (g POINT);
mysql> INSERT t1 SET g=PointFromWKB(Point(1,1));
mysql> INSERT t1 SET g=PointFromWKB(Point(0,0));
mysql> INSERT t1 SET g=PointFromWKB(Point(1,0))...
I need unique (or primary) key with spatial (POINT) column. But when i try somthing like:
mysql> create table m (g Point primary key);
mysql> insert into m (g) values (PointFromText('point(1 1)'));
mysql> insert into m (g) values (PointFromText('point(1 2)'));
ERROR 1062: Duplicate entry '' for...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.