[postgis-users] Problem with ST_intersects
James Sewell
James.Sewell at lisasoft.com
Mon Jun 20 20:50:12 PDT 2011
Hello All,
I think I have found a bug. For the data attached the following commands yield interesting results, with the output of ST_intersects seemingly changed by the where clause.
plm25=> select a.id, ST_intersects(a.the_geom, b.the_geom) from apoly as a, aright as b where a.id = 1954 or a.id =2034 order by id;
id | st_intersects
------+---------------
1954 | f
2034 | t
(2 rows)
plm25=> select a.id, ST_intersects(a.the_geom, b.the_geom) from apoly as a, aright as b where a.id = 1954 or a.id =2033 order by id;
id | st_intersects
------+---------------
1954 | t
2033 | t
(2 rows)
Anyone have any ideas why this might be so?
----
James Sewell
Solutions Architect
Ardec International
Office: (03) 86803200
Mobile: 0414 688 892
________________________________________
From: James Sewell
Sent: Tuesday, 21 June 2011 11:51 AM
To: Mark Leslie
Subject: Shape files
Hello,
Attached are the two shape files; apoly has the point layer, aright is the large polygon I want to detect intersections with.
Also included is commands.txt which has the commands which cause the problem.
I have tested on the following and got the incorrect results:
CentOS: POSTGIS="1.5.2" GEOS="3.1.1-CAPI-1.6.0" PROJ="Rel. 4.7.1, 23 September 2009 " LIBXML="2.6.26" USE_STATS
Solaris: POSTGIS="1.5.2" GEOS="3.1.1-CAPI-1.6.0" PROJ="Rel. 4.7.1, 23 September 2009" LIBXML="2.6.31" USE_STATS
I will post it to the list as well this afternoon if you have no luck, let me know.
----
James Sewell
Solutions Architect
Ardec International
Office: (03) 86803200
Mobile: 0414 688 892
The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: intersect_bug.zip
Type: application/x-zip-compressed
Size: 1967562 bytes
Desc: intersect_bug.zip
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20110621/dc3c5294/attachment.bin>
More information about the postgis-users
mailing list