[postgis-devel] [PostGIS] #261: Distance calc still giving spurious mismatched dimensionality errors

PostGIS trac at osgeo.org
Thu Oct 8 07:06:21 PDT 2009


#261: Distance calc still giving  spurious mismatched dimensionality errors
---------------------+------------------------------------------------------
 Reporter:  robe     |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  postgis 1.5.0
Component:  postgis  |     Version:               
 Keywords:           |  
---------------------+------------------------------------------------------
 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);

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/261>
PostGIS <http://trac.osgeo.org/postgis/>
PostGIS


More information about the postgis-devel mailing list