Assembling of the MULTIPOINT string : MULTIPOINT « Geometric « SQL / MySQL






Assembling of the MULTIPOINT string

    
mysql>
mysql>
mysql> SET @d0 = 30000;
Query OK, 0 rows affected (0.00 sec)

mysql> SET @str = CONCAT('MULTIPOINT(', @x0-@d0, ' ', @y0-@d0, ', ', @x0+@d0, ' ', @y0+@d0, ')');
Query OK, 0 rows affected (0.00 sec)

mysql>
mysql> SET @bbox = ENVELOPE(GEOMFROMTEXT(@str));
Query OK, 0 rows affected (0.00 sec)

mysql>
mysql> SELECT @str;
+------+
| @str |
+------+
| NULL |
+------+
1 row in set (0.00 sec)

mysql>
mysql>

   
    
    
    
  








Related examples in the same category