Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.2(EOL)
-
None
-
10.2.11
Description
MariaDB [(none)]> SELECT st_astext(st_geomfromgeojson(' |
'> { |
'> "type": "MultiLineString", |
'> "coordinates": [ |
'> ] |
'> }')) as a; |
+------------------+
|
| a |
|
+------------------+
|
| MULTILINESTRING) |
|
+------------------+
|
1 row in set (0.00 sec)
|
|
MariaDB [(none)]>
|
MariaDB [(none)]> SELECT st_astext(st_geomfromgeojson('
|
'> { |
'> "type": "Polygon", |
'> "coordinates": [ |
'> ] |
'> }')) as a; |
+----------+ |
| a |
|
+----------+ |
| POLYGON) |
|
+----------+ |
1 row in set (0.00 sec) |
|
MariaDB [(none)]>
|
MariaDB [(none)]> SELECT st_astext(st_geomfromgeojson(' |
'> { |
'> "type": "MultiPolygon", |
'> "coordinates": [ |
'> ] |
'> }')) as a; |
+---------------+ |
| a |
|
+---------------+ |
| MULTIPOLYGON) |
|
+---------------+ |
1 row in set (0.00 sec) |
These objects are valid in json, but invalid in geojson , so must be handled accordingly.