[postgis-devel] Issue 148 in postgis: st_touches doesn't work as it should on st_touches(line,point)

codesite-noreply at google.com codesite-noreply at google.com
Wed Apr 8 08:57:49 PDT 2009


Comment #2 on issue 148 by ke... at refractions.net: st_touches doesn't work  
as it should on st_touches(line,point)
http://code.google.com/p/postgis/issues/detail?id=148

Regina, you are correct.

Another way to state the relation is:
Geometry (a) touches geometry (b) if and only if:
1. the intersection of (a) and (b) is not the empty set (which means they  
have to
interact somehow) AND
2. the intersection of the interior of (a) and the interior of (b) is not  
the empty set.

This means that intersection must occur on the boundary of at least one of  
the
geometries.  Since, according to the specs, a point does not have a  
boundary (only an
interior), if follows that ST_Touches returns true only if the point lies  
on the
boundary (or endpoints) of the line.

-- Kevin

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings



More information about the postgis-devel mailing list