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

PostGIS trac at osgeo.org
Mon Nov 9 22:51:52 PST 2009


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

  * status:  closed => reopened
  * resolution:  fixed =>

Comment:

 This is not fixed in my book.

 I still get


 {{{
 ERROR:  Error in gbox_from_gserialized calculation.
 CONTEXT:  SQL function "st_distance" statement 1
 }}}

 When I try to do

 {{{
 SELECT ST_Distance(ST_GeographyFromText('SRID=4326;POLYGON EMPTY'),
 ST_GeographyFromText('SRID=4326;POINT(1 2)'));
 }}}

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


More information about the postgis-devel mailing list