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/r/gis.result | |
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/r/gis.result')
-rw-r--r-- | mysql-test/r/gis.result | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/mysql-test/r/gis.result b/mysql-test/r/gis.result index 4f65aa2e500..f696466f38c 100644 --- a/mysql-test/r/gis.result +++ b/mysql-test/r/gis.result @@ -1378,7 +1378,7 @@ SELECT IsRing(LineFromWKB(AsBinary(Boundary(boundary)),SRID(boundary))) FROM named_places WHERE name = 'Goose Island'; IsRing(LineFromWKB(AsBinary(Boundary(boundary)),SRID(boundary))) -0 +1 # Conformance Item T21 SELECT GLength(centerline) FROM road_segments @@ -1765,3 +1765,12 @@ SRID 0 0 drop table t1; +# +# MDEV-7510 GIS: IsRing returns false for a primitive triangle. +# +select ST_IsRing(ST_LineFromText('LINESTRING(0 0,0 10,10 10,0 0)')); +ST_IsRing(ST_LineFromText('LINESTRING(0 0,0 10,10 10,0 0)')) +1 +select ST_IsRing(ST_LineFromText('LINESTRING(0 0,0 10,10 10,-10 -10, 0 -10, 0 0)')); +ST_IsRing(ST_LineFromText('LINESTRING(0 0,0 10,10 10,-10 -10, 0 -10, 0 0)')) +0 |