[postgis-tickets] [PostGIS] #4908: ST_AsGeoJSON in POSTGIS-2.5 different than ST_AsGeoJSON in POSTGIS-3.0

PostGIS trac at osgeo.org
Sat May 8 06:18:05 PDT 2021


#4908: ST_AsGeoJSON in POSTGIS-2.5 different than ST_AsGeoJSON in POSTGIS-3.0
---------------------------+---------------------------
  Reporter:  maheshpusala  |      Owner:  pramsey
      Type:  defect        |     Status:  new
  Priority:  high          |  Milestone:  PostGIS 3.1.2
 Component:  postgis       |    Version:  2.5.x
Resolution:                |   Keywords:
---------------------------+---------------------------

Comment (by Algunenano):

 > Actually it might be that with the improvements to floating-point output
 in 3.0

 One correction, the improvements to floating point output were introduced
 in 3.1. The problem here comes from the change from a default 15 decimal
 digits to 9 which predates that change.

 In any case, ST_AsGeoJSON has an option to set the number of decimal
 digits to however many you need and 15 decimal digits does not guarantee
 full precision output either. The good thing about 3.1 is that you can see
 a ask for a huge number of decimal digits and you'll only get significant
 ones (way less).

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