[postgis-devel] Issue 146 in postgis: 1.4 ST_Distance and ST_Dwithin doesn't behave like 1.3

codesite-noreply at google.com codesite-noreply at google.com
Fri Apr 3 23:38:59 PDT 2009


Status: Accepted
Owner: robe.... at cityofboston.gov
Labels: Priority-Critical Milestone-1.4

New issue 146 by robe.... at cityofboston.gov: 1.4 ST_Distance and ST_Dwithin  
doesn't behave like 1.3
http://code.google.com/p/postgis/issues/detail?id=146

What steps will reproduce the problem?
1.  Run the below
SELECT ST_Distance(g1,g2), ST_Dwithin(g1,g2,0.01), ST_AsEWKT(g2)
FROM (SELECT ST_geomFromEWKT('LINESTRING(1 2, 2 4)') As g1,
ST_Collect(ST_GeomFromEWKT('LINESTRING(0 0, -1 -1)'),
ST_GeomFromEWKT('MULTIPOINT(1 2,2 3)')) As g2)
As foo


What is the expected output? In 1.3.5 I get this

2.23606797749979;f;GEOMETRYCOLLECTION(LINESTRING(0 0,-1 -1),MULTIPOINT(1
2,2 3))
What do you see instead? In 1.4 I get this

ERROR:  Unsupported geometry type: MultiPoint




--
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