📜  来自 json mysql 函数的地理点 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:32.279000             🧑  作者: Mango

代码示例1
Press CTRL+C to copy mysql> SET @json = '{ "type": "Point", "coordinates": [102.0, 0.0]}';
mysql> SELECT ST_AsText(ST_GeomFromGeoJSON(@json));
+--------------------------------------+
| ST_AsText(ST_GeomFromGeoJSON(@json)) |
+--------------------------------------+
| POINT(102 0)                         |
+--------------------------------------+