If you inspect the SRID of the ST_GEOMETRY layer, I'm sure you'll find it has been created
with an XY_SCALE (resolution) of 1000 (1mm). If so, then you *are* getting the complete
value in SQL (and an imprecise one through the REST API).
If you wish greater precision, you'll need to specify it at layer creation. But be sure you
understand the storage and performance ramifications before you ratchet up the precision
(greater precision decreases compression efficiency, slowing access proportionally). It
would also be useful to compare the desired precision with the actual accuracy -- most
geospatial data isn't more accurate than a decimeter, much less a millimeter, so displaying
it to angstrom resolution is more than just a violation of the Heisenberg Uncertainty Principle.
- V