From 76e7146ef75e4d4e23e717ae6961e64fef640462 Mon Sep 17 00:00:00 2001 From: Chris Hodgson Date: Thu, 12 May 2011 22:05:03 +0000 Subject: [PATCH] added regess test for #884 git-svn-id: http://svn.osgeo.org/postgis/trunk@7139 b70326c6-7e19-0410-871a-916f4a2858ee --- regress/tickets.sql | 11 +++++++++++ regress/tickets_expected | 2 ++ 2 files changed, 13 insertions(+) diff --git a/regress/tickets.sql b/regress/tickets.sql index 6ca704ecf..adc228e4d 100644 --- a/regress/tickets.sql +++ b/regress/tickets.sql @@ -371,5 +371,16 @@ SELECT '#845', ST_Intersects('POINT(169.69960846592 -46.5061209281002)'::geometr -- #834 SELECT '#834', ST_AsEWKT(ST_Intersection('LINESTRING(0 0,0 10,10 10,10 0)', 'LINESTRING(10 10 4,10 0 5,0 0 5)')); +-- #884 -- +CREATE TABLE foo (id integer, the_geom geometry); +INSERT INTO foo VALUES (1, st_geomfromtext('MULTIPOLYGON(((-113.6 35.4,-113.6 35.8,-113.2 35.8,-113.2 35.4,-113.6 35.4),(-113.5 35.5,-113.3 35.5,-113.3 35.7,-113.5 35.7,-113.5 35.5)))', -1)); +INSERT INTO foo VALUES (2, st_geomfromtext('MULTIPOLYGON(((-113.7 35.3,-113.7 35.9,-113.1 35.9,-113.1 35.3,-113.7 35.3),(-113.6 35.4,-113.2 35.4,-113.2 35.8,-113.6 35.8,-113.6 35.4)),((-113.5 35.5,-113.5 35.7,-113.3 35.7,-113.3 35.5,-113.5 35.5)))', -1)); + +select '#884', id, ST_Within( +ST_GeomFromText('POINT (-113.4 35.6)', -1), the_geom +) from foo; + +DROP TABLE foo; + -- Clean up DELETE FROM spatial_ref_sys; diff --git a/regress/tickets_expected b/regress/tickets_expected index ca2b989f6..59b2c86c3 100644 --- a/regress/tickets_expected +++ b/regress/tickets_expected @@ -108,3 +108,5 @@ ERROR: First argument must be a LINESTRING #804|0 0 #845|t #834|GEOMETRYCOLLECTION(POINT(0 0 5),LINESTRING(10 10 5,10 0 5)) +#884|1|f +#884|2|t -- 2.50.1