[postgis-tickets] [PostGIS] #2546: GeoJSON with string coordinates parses incorrectly instead of throwing error

PostGIS trac at osgeo.org
Mon Dec 2 03:57:47 PST 2013


#2546: GeoJSON with string coordinates parses incorrectly instead of throwing
error
-----------------------+----------------------------------------------------
 Reporter:  crschmidt  |       Owner:  pramsey
     Type:  defect     |      Status:  new    
 Priority:  medium     |   Milestone:         
Component:  postgis    |     Version:  2.0.x  
 Keywords:             |  
-----------------------+----------------------------------------------------

Comment(by timbunce):

 (I replied to the email notification but I'm not sure if that'll appear
 here automatically. If it does please accept my apologies for the
 duplication.)

 I've created an alternative fix as a pull request:
 https://github.com/postgis/postgis/pull/15

 It's simpler, faster, and avoids reusing the type of the first coord when
 processing the later coords. This isn't needed as json_object_get_double()
 automatically coerces types.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2546#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