[postgis-devel] [PostGIS] #294: Rationalize support for EMPTY

PostGIS trac at osgeo.org
Mon Jan 25 08:46:37 PST 2010


#294: Rationalize support for EMPTY
----------------------+-----------------------------------------------------
  Reporter:  pramsey  |       Owner:  pramsey      
      Type:  task     |      Status:  new          
  Priority:  medium   |   Milestone:  PostGIS 2.0.0
 Component:  postgis  |     Version:  trunk        
Resolution:           |    Keywords:  empty        
----------------------+-----------------------------------------------------
Comment (by robe):

 Just itemizing some of these cases as I come across them in tests.

 SELECT  ST_Distance_Sphere(ST_GeomFromText('POLYGON
 EMPTY',4326),ST_GeomFromText('POINT(1 3)',4326))

 Gives error: geometry_distance_spheroid: Only point/line/polygon
 supported.

 Though curiously (which I thought they shared some code)

 SELECT  ST_Distance(geography(ST_GeomFromText('POLYGON
 EMPTY',4326)),geography(ST_GeomFromText('POINT(1 3)',4326)));

 Returns null as expected

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/294#comment:2>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-devel mailing list