[postgis-devel] [PostGIS] #259: ST_Distance geography throws an error with empty geographies

PostGIS trac at osgeo.org
Tue Oct 6 01:35:00 PDT 2009


#259: ST_Distance geography throws an error with empty geographies
----------------------+-----------------------------------------------------
  Reporter:  robe     |       Owner:  pramsey      
      Type:  defect   |      Status:  closed       
  Priority:  medium   |   Milestone:  postgis 1.5.0
 Component:  postgis  |     Version:               
Resolution:  fixed    |    Keywords:               
----------------------+-----------------------------------------------------
Comment (by mcayland):

 Hmmm I think I like Paul's original idea of returning NULL here, mainly
 because 0.0 is also a valid distance. Otherwise if a user unknowingly
 passes in an empty polygon to the distance calculation, then they are
 returned a seemingly meaningful answer for a meaningless calculation :(


 ATB,

 Mark.

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


More information about the postgis-devel mailing list