This article is currently incomplete.

MariaDB starting with 10.2.4

ST_GeomFromGeoJSON was added in MariaDB 10.2.4

Syntax

Description

Given a GeoJSON input, returns a geometry object.

Examples

SET @j = '{ "type": "Point", "coordinates": [5.3, 15.0]}';

SELECT ST_AsText(ST_GeomFromGeoJSON(@j));
+-----------------------------------+
| ST_AsText(ST_GeomFromGeoJSON(@j)) |
+-----------------------------------+
| POINT(5.3 15)                     |
+-----------------------------------+

Comments

Comments loading...
Loading