Closed pirwani closed 1 year ago
It is incorrect to use PrecisionModel.maximumPreciseValue
as the scale factor for a PrecisionModel
. A scale factor should indicate the number of digits of precision required, and is typically a power of 10 with a fairly small exponent (e.g. between 1 and 10^15). The code logic is not designed to handle values outside this range.
Consider the following example:
fails with the following exception:
However, if I replace the first line in the test that constructs a
GeometryFactory
with the following:...then, the test works.
Any ideas on what might be going wrong? Seems counter intuitive that a higher precision computation model would fail while it'd pass for a default model.
Thank you!