[postgis-tickets] [PostGIS] #4827: Accept NaN from WKT parser

PostGIS trac at osgeo.org
Thu Jan 28 14:25:43 PST 2021


#4827: Accept NaN from WKT parser
----------------------+---------------------------
  Reporter:  strk     |      Owner:  pramsey
      Type:  defect   |     Status:  new
  Priority:  medium   |  Milestone:  PostGIS 3.1.2
 Component:  postgis  |    Version:  master
Resolution:           |   Keywords:
----------------------+---------------------------

Comment (by pramsey):

 I mean, it goes on and on... particularly with POINT(NaN NaN), which can't
 be round-tripped through WKB, since WKB needs that form to encode POINT
 EMPTY.
 {{{
 select st_astext(st_geomfromwkb(st_asbinary(ST_MakePoint('NAN', 'NAN'))));
 select st_astext(ST_MakePoint('NAN', 'NAN'));
 }}}

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