Skip to content

Risk type: precision/formatter_boundary

These 7 cases exercise the precision/formatter_boundary failure mode. Run your function against all of them to check how it behaves.

Use GeoCase in your tests

Install the complete set of vector, raster, and NetCDF dependencies:

pip install "geocase[all]"

View GeoCase on PyPI.

Case Category Format Geometry
Numeric Boundary: 15 Significant Digits vector GeoJSON Point
Numeric Boundary: 17 Significant Digits vector GeoJSON Point
Numeric Boundary: 1e-13 vector GeoJSON Point
Numeric Boundary: 1e-14 vector GeoJSON Point
Numeric Boundary: 1e-15 vector GeoJSON Point
Numeric Boundary: Trailing Nines vector GeoJSON Point
Numeric Boundary: Trailing Zeros vector GeoJSON Point