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

PostGIS trac at osgeo.org
Thu Jan 28 14:15:33 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):

 PostGIS has already made its piece with representing invalid geometries.
 You can load all kinds of bad stuff. However, thanks for this reminder
 that there's actually other things you can hand-build in PostGIS that you
 cannot round trip.
 {{{
 select st_astext(st_makeline(ARRAY['POINT(0 0)'::geometry]));
 }}}
 Making "round trip" a principle also opens the door to geometries with Inf
 coordinates. What's the UTILITY of doing all this?

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