[postgis-devel] [PostGIS] #407: Use PgSQL globals to define number of output digits to print
PostGIS
trac at osgeo.org
Fri Sep 10 21:37:38 PDT 2010
#407: Use PgSQL globals to define number of output digits to print
-------------------------+--------------------------------------------------
Reporter: pramsey | Owner: pramsey
Type: enhancement | Status: new
Priority: medium | Milestone: PostGIS 2.0.0
Component: postgis | Version: trunk
Keywords: |
-------------------------+--------------------------------------------------
Comment(by pramsey):
As an aside, see #584 for a potential benefit of this feature. We should
set extra_float_digits to -2 or -4 at the start of the regression run to
try and squeeze out precision difference noise from the regression test
runs.
We can't remove the precision parameter from the function signatures in
liblwgeom, unfortunately, since we don't have access to the GUC at that
level, only at the database level. If we were willing to put the output
precision into a liblwgeom global we could, but then liblwgeom would not
be thread-safe.
Do we care? maybe, if we plan on multi-threading it some day. On the other
hand, the parser is currently not re-entrant, and I don't actually plan on
making the new one re-entrant since it involves learning even more about
bison and lex!
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/407#comment:2>
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