]> granicus.if.org Git - postgis/commitdiff
added regess test for #884
authorChris Hodgson <chodgson@refractions.net>
Thu, 12 May 2011 22:05:03 +0000 (22:05 +0000)
committerChris Hodgson <chodgson@refractions.net>
Thu, 12 May 2011 22:05:03 +0000 (22:05 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7139 b70326c6-7e19-0410-871a-916f4a2858ee

regress/tickets.sql
regress/tickets_expected

index 6ca704ecf2ecafafd052b69544d33015b5503e90..adc228e4dd4ff0771815f168a57a5a6496628e8c 100644 (file)
@@ -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;
index ca2b989f6bc3fd38a93050f7c9d28d812f9ebd62..59b2c86c31c0fc51e8bd0b3b8b2b5d20e88e5200 100644 (file)
@@ -108,3 +108,5 @@ ERROR:  First argument must be a LINESTRING
 #804|<gml:Point srsName="urn:ogc:def:crs:EPSG::4326"><gml:pos srsDimension="2">0 0</gml:pos></gml:Point>
 #845|t
 #834|GEOMETRYCOLLECTION(POINT(0 0 5),LINESTRING(10 10 5,10 0 5))
+#884|1|f
+#884|2|t