[postgis-devel] [PostGIS] #1909: intersection problem
PostGIS
trac at osgeo.org
Tue Jul 10 06:27:42 PDT 2012
#1909: intersection problem
----------------------+-----------------------------------------------------
Reporter: debe | Owner: pramsey
Type: defect | Status: closed
Priority: medium | Milestone: PostGIS 1.5.4
Component: postgis | Version: 1.5.X
Resolution: invalid | Keywords:
----------------------+-----------------------------------------------------
Changes (by pramsey):
* cc: mdavis@… (added)
* status: new => closed
* resolution: => invalid
Comment:
It's difficult to understand, but doing computer geometry we live in a
quantized world. Imagine a piece of graph paper. Draw a line from one
intersection to another. Now, look at all the points on that line which do
**not** touch an intersection. Those are all the valid geometric points on
the line that you cannot represent using integers. The same thing is true
of lines between two double-precision points. Most of the space on that
line will be points that cannot be exactly represented in double
precision. Your substring includes the 0.0 proportion (the start point)
and that's representable. The 0.6 proportion is not. The result is a new
line that is **very slightly** offset from the original. Enough that the
exact attempt at an intersection only picks up the original point.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1909#comment:1>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-devel
mailing list