[postgis-tickets] [PostGIS] #2169: ST_PointOnSurface gives EMPTY for non-empty line input

PostGIS trac at osgeo.org
Fri Jan 11 03:00:15 PST 2013


#2169: ST_PointOnSurface gives EMPTY for non-empty line input
---------------------+------------------------------------------------------
 Reporter:  strk     |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.0.3
Component:  postgis  |     Version:  2.0.x        
 Keywords:           |  
---------------------+------------------------------------------------------
 When passing a line with a single distinct point to ST_PointOnSurface you
 get an EMPTY back.
 Granted that we don't support invalid geometries, but it would be much
 more useful to just return _that_ point instead.

 Note the discrepancy:

 {{{
  ST_PointOnSurface('LINESTRING(0 0, 10 0)'::geometry) -> POINT(0 0)
  ST_PointOnSurface('LINESTRING(0 0, 0 0)'::geometry) -> POINT EMPTY
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2169>
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-tickets mailing list