[postgis-tickets] [PostGIS] #2742: Rounding bug using ST_GeomFromGeojson()

PostGIS trac at osgeo.org
Mon May 19 10:46:10 PDT 2014


#2742: Rounding bug using ST_GeomFromGeojson()
---------------------+------------------------------------------------------
 Reporter:  jakeorr  |       Owner:  pramsey      
     Type:  task     |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.1.4
Component:  postgis  |     Version:  2.1.x        
 Keywords:           |  
---------------------+------------------------------------------------------
Changes (by robe):

  * milestone:  => PostGIS 2.1.4


Comment:

 Hmm this is a bit odd. I thought I had tried this on 2.1.3 and got the
 same problem but maybe I didn't on 2.1.3 windows 64-bit.

 On windows 64-bit I get the following:


 {{{
 SELECT postgis_full_version() || ' ' || version();

 POSTGIS="2.1.3 r12547" GEOS="3.4.2-CAPI-1.8.2 r3924" PROJ="Rel. 4.8.0, 6
 March 2012" GDAL="GDAL 1.10.0, released 2013/04/24" LIBXML="2.7.8"
 LIBJSON="UNKNOWN" RASTER PostgreSQL 9.3.3, compiled by Visual C++ build
 1600, 64-bit
 }}}



 {{{
   SELECT
 ST_AsText(ST_GeomFromGeojson('{"type":"Point","coordinates":[-109,35.292506]}'));

 POINT(-109 35.292506)
 }}}

 I also tried on 2.1.2 and also seems fine.  My 2.2.0dev older dev exhibits
 the issue but is a very early 2.2.0dev so might have been before the fix
 was put in.

 jakeorr if you can upgrade can you give2.1.2 or  2.1.3 a try.  Might be
 fixed on that.

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