diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2015-03-15 11:17:50 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2015-03-15 11:17:50 +0400 |
commit | ca3041883725393baa6c645050ef926d782eb3a8 (patch) | |
tree | eda5c27fd68b48d5f8f41a15a26dc611b1ffbb1a /mysql-test/t/gis.test | |
parent | a21ef88d2a358904f0cdf9cadc701cb263b5e317 (diff) | |
download | mariadb-git-ca3041883725393baa6c645050ef926d782eb3a8.tar.gz |
MDEV-7514 GIS: PointOnSurface returns NULL instead of the point.
Need to take into account cases of a polygon shaped as a very thin line.
Diffstat (limited to 'mysql-test/t/gis.test')
-rw-r--r-- | mysql-test/t/gis.test | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mysql-test/t/gis.test b/mysql-test/t/gis.test index 888ee681eeb..9c84848b979 100644 --- a/mysql-test/t/gis.test +++ b/mysql-test/t/gis.test @@ -1492,3 +1492,8 @@ drop table t1; select ST_IsRing(ST_LineFromText('LINESTRING(0 0,0 10,10 10,0 0)')); select ST_IsRing(ST_LineFromText('LINESTRING(0 0,0 10,10 10,-10 -10, 0 -10, 0 0)')); +--echo # +--echo # MDEV-7514 GIS: PointOnSurface returns NULL instead of the point. +--echo # +SELECT ST_GEOMETRYTYPE(ST_PointOnSurface(ST_PolyFromText('POLYGON((-70.916 42.1002,-70.9468 42.0946,-70.9754 42.0875,-70.9749 42.0879,-70.9759 42.0897,-70.916 42.1002))'))); + |