[postgis-tickets] [PostGIS] #4660: Sensible number output semantics
PostGIS
trac at osgeo.org
Tue Jul 28 04:19:33 PDT 2020
#4660: Sensible number output semantics
--------------------------+---------------------------
Reporter: Algunenano | Owner: Algunenano
Type: enhancement | Status: closed
Priority: medium | Milestone: PostGIS 3.1.0
Component: postgis | Version: master
Resolution: fixed | Keywords:
--------------------------+---------------------------
Changes (by Raúl Marín <git@…>):
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"13437122770db9f07be062feddba80210bee0a0d/git" 1343712/git]:
{{{
#!CommitTicketReference repository="git"
revision="13437122770db9f07be062feddba80210bee0a0d"
Use the shortest representation when printing doubles
- Use the shortest representation (enough to guarantee roundtrip).
- Uses scientific notation for absolute numbers smaller than 1e-8. The
previous behaviour was to output 0 for absolute values smaller than 1e-12
and fixed notation for anything bigger than that.
- Uses scientific notation for absolute numbers greater than 1e+15 (same
behaviour).
- The precision parameter now also affects the scientific notation (before
it was fixed [5-8]).
- All output functions now respect the requested precision (without any
limits).
- The default precision is the same (9 for GeoJSON, 15 for everything
else).
Many regress test changed mainly because of the fixes to the precision
parameter, which is now respected as the amount of digits after the fixed
point.
Closes https://github.com/postgis/postgis/pull/570
Closes #4660
}}}
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4660#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-tickets
mailing list