Opened 15 years ago

Closed 15 years ago

#261 closed defect (fixed)

Distance calc still giving spurious mismatched dimensionality errors

Reported by: robe Owned by: pramsey
Priority: medium Milestone: PostGIS 1.5.0
Component: postgis Version:
Keywords: Cc:

Description

This may be the same issue as #260, but these two geometries have the same coordinate dimensionality and can't get a distance on them.

SELECT ST_Distance(ST_GeographyFromText('SRID=4326;POINT(-71.0325022849392 42.3793285830812)'),ST_GeographyFromText('SRID=4326;POLYGON((-71.0325022849392 42.3793285830812,-71.0325745928559 42.3793012556699,-71.0326708728343 42.3794450989722,-71.0326045866257 42.3794706688942,-71.0325022849392 42.3793285830812))')

);

Gives error: ERROR: gbox_overlaps: geometries have mismatched dimensionality

Seeing this error in test cases too that I think should pass: SELECT ST_DWithin(ST_GeographyFromText('SRID=4326;POINT(-10 40)'), ST_GeographyFromText('SRID=4326;MULTIPOINT(-10 40,-10 55,-10 70,5 40,5 55,5 70,20 40,20 55,20 70,35 40,35 55,35 70,50 40,50 55,50 70)'), 100);

Change History (1)

comment:1 by pramsey, 15 years ago

Resolution: fixed
Status: newclosed

Probably not the only place this bug lives, but fixed in this case, at r4632

Note: See TracTickets for help on using tickets.