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

PostGIS trac at osgeo.org
Tue Oct 6 04:09:11 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):

 Well the argument for NULL is fairly easy, given that the result is
 unknown (i.e. can't be calculated) in this case, and the fact that SQL
 Server 2008 returns the same answer is also a good indication that someone
 else independently has followed the same logic. I'd be inclined to say
 change both geometry and geography to return NULL in trunk but don't
 backpatch.


 ATB,

 Mark.

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


More information about the postgis-devel mailing list