diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2015-03-13 16:10:31 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2015-03-13 16:10:31 +0400 |
commit | 702fba1511c90ea9c72b6c00122e0f31a05237b4 (patch) | |
tree | 6aec2067b91e397dc9cb2fac4726de7349d74746 /mysql-test/t/gis.test | |
parent | 75d65b5f4e5428310e57155903602801d7d86ee2 (diff) | |
download | mariadb-git-702fba1511c90ea9c72b6c00122e0f31a05237b4.tar.gz |
MDEV-7510 GIS: IsRing returns false for a primitive triangle.
The problem is in the IsSimple function. If the first and the last points
of a curve coincide it's and exception and the line is still 'simple'.
Diffstat (limited to 'mysql-test/t/gis.test')
-rw-r--r-- | mysql-test/t/gis.test | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mysql-test/t/gis.test b/mysql-test/t/gis.test index a4e95b7549e..888ee681eeb 100644 --- a/mysql-test/t/gis.test +++ b/mysql-test/t/gis.test @@ -1486,3 +1486,9 @@ ALTER TABLE t1 ADD fid INT NOT NULL; select SRID from information_schema.geometry_columns where F_TABLE_NAME='t1'; drop table t1; +--echo # +--echo # MDEV-7510 GIS: IsRing returns false for a primitive triangle. +--echo # +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)')); + |