Opened 15 years ago

Last modified 15 years ago

#146 closed defect (fixed)

1.4 ST_Distance and ST_Dwithin doesn't handle collections correctly — at Initial Version

Reported by: robe Owned by: robe
Priority: critical Milestone: PostGIS 1.4.0
Component: postgis Version: 1.4
Keywords: Cc:

Description

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

Change History (0)

Note: See TracTickets for help on using tickets.