[postgis-tickets] [PostGIS] #4331: ST_3DMakeBox crashes on POINT EMPTY

PostGIS trac at osgeo.org
Mon Feb 25 03:36:02 PST 2019


#4331: ST_3DMakeBox crashes on POINT EMPTY
----------------------+---------------------------
  Reporter:  robe     |      Owner:  pramsey
      Type:  defect   |     Status:  new
  Priority:  blocker  |  Milestone:  PostGIS 3.0.0
 Component:  postgis  |    Version:  2.4.x
Resolution:           |   Keywords:
----------------------+---------------------------

Comment (by Algunenano):

 > Does a 3DMakeBox make sense on top of two empty points? What is really
 expected in this case?

 `ST_MakeBox2D` returns an error (which isn't very clear BTW), so I'd match
 that behaviour:
 {{{
 SELECT ST_MakeBox2D(ST_GeomFromText('POINT EMPTY',4326),
 ST_GeomFromText('POINT EMPTY',4326))
 ;
 ERROR:  lwpoint_get_x called with empty geometry
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4331#comment:4>
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