Commit graph

7 commits

Author SHA1 Message Date
Sandro Santilli 8a31acd642 Change ST_Equals to use the ~= operator (#1453)
Doing so it will consistently return TRUE for EMPTY-EMPTY, while
previously _ST_Equals returned TRUE but ST_Equals returned FALSE.

The commit also changes signature of the C function
from 'geomequals' to 'ST_Equals' and marks an SQL 'Equals'
signature as a candidate for dropping before 2.0.0 final

git-svn-id: http://svn.osgeo.org/postgis/trunk@8886 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-20 08:12:15 +00:00
Sandro Santilli 887793cead Fix EMPTY ~= EMPTY to return TRUE (#1453)
This also fixes ST_OrderingEquals for empty geometries and
adds the concept of NULL boxes to represent EMPTY boxes.

ST_Equals is still broken as it uses the overlap operator instead.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8778 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-11 17:18:27 +00:00
Sandro Santilli c35cc257f9 Regress test all behaviors involving EMPTY geometries
See http://trac.osgeo.org/postgis/wiki/DevWikiEmptyGeometry
Changes ST_NumPoints and ST_ExteriorRing to behave requested.
Keeps ST_InteriorRingN returning NULL, as per "n is out of range"

Closes #692

git-svn-id: http://svn.osgeo.org/postgis/trunk@8415 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-14 18:25:05 +00:00
Sandro Santilli 8b9b187c8e Fix crash on ST_AsGML('POLYGON EMPTY') (#681)
Also tweak GML of empty types to be smaller and include
regression testing both at the liblwgeom and sql level

git-svn-id: http://svn.osgeo.org/postgis/trunk@8412 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-14 16:02:44 +00:00
Sandro Santilli ebcbd6dc1a Fix a typo from last commit, stub test for GML emptyness
git-svn-id: http://svn.osgeo.org/postgis/trunk@8411 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-14 15:07:27 +00:00
Sandro Santilli bd52e9708d Move the EMPTY buffer test from tickets.sql to empty.sql
git-svn-id: http://svn.osgeo.org/postgis/trunk@8409 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-14 14:46:39 +00:00
Sandro Santilli ed841457ad Return empty geoms snapped to a grid as immutated (#1089)
Also introduces an "empty" regression test

git-svn-id: http://svn.osgeo.org/postgis/trunk@8408 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-14 14:37:18 +00:00