[postgis-devel] [PostGIS] #1996: ST_AsGeoJSON('POINT EMPTY') produces invalid JSON

PostGIS trac at osgeo.org
Fri Nov 2 12:17:35 PDT 2012


#1996: ST_AsGeoJSON('POINT EMPTY') produces invalid JSON
-------------------------+--------------------------------------------------
  Reporter:  cdestigter  |       Owner:  pramsey      
      Type:  defect      |      Status:  closed       
  Priority:  medium      |   Milestone:  PostGIS 2.1.0
 Component:  postgis     |     Version:  trunk        
Resolution:  fixed       |    Keywords:               
-------------------------+--------------------------------------------------

Comment(by pramsey):

 Regardless of the odd dimensionality of the structure, using an empty
 array at least allows code to blindly test for length==0 as an isEmpty
 test. Went with that fix as suggested by original filer.

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