[postgis-devel] [PostGIS] #260: Geography inconsistent distance behavior from geometry can't compare different dimensonality

PostGIS trac at osgeo.org
Wed Oct 7 05:13:20 PDT 2009


#260: Geography inconsistent distance behavior from geometry can't compare
different dimensonality
----------------------+-----------------------------------------------------
  Reporter:  robe     |       Owner:  pramsey      
      Type:  defect   |      Status:  new          
  Priority:  medium   |   Milestone:  postgis 1.5.0
 Component:  postgis  |     Version:               
Resolution:           |    Keywords:               
----------------------+-----------------------------------------------------
Comment (by robe):

 Though this I would consider a bug (at least an error in the error
 message).  Gives error
 ERROR:  gbox_overlaps: geometries have mismatched dimensionality

 even though they are the same dimension.  If we are not going to allow
 these functions to be used with higher dimensions we should change this
 error message.


 {{{
         SELECT ST_DWithin(geography(foo1.the_geom),
 geography(foo2.the_geom), 100), ST_AsEWKT(foo1.the_geom) As ref1_geom,
 ST_AsEWKT(foo2.the_geom) As ref2_geom

                         FROM ((
                         SELECT
 ST_GeomFromEWKT('SRID=4326;MULTIPOLYGONM(((0 0 2,10 0 1,10 10 -2,0 10 -5,0
 0 -5),(5 5 6,7 5 6,7 7 6,5 7 10,5 5 -2)))')  As the_geom
                         )) As foo1 CROSS JOIN ((
                         SELECT
 ST_GeomFromEWKT('SRID=4326;MULTIPOLYGONM(((0 0 2,10 0 1,10 10 -2,0 10 -5,0
 0 -5),(5 5 6,7 5 6,7 7 6,5 7 10,5 5 -2)))')  As the_geom
                         )) As foo2
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/260#comment:1>
PostGIS <http://trac.osgeo.org/postgis/>
PostGIS


More information about the postgis-devel mailing list