Risk type: precision/loss¶
These 7 cases exercise the precision/loss 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:
Format-limited Precision Polygon
GeoTIFF Float64 Small
Numeric Boundary: 1e-14
Numeric Boundary: Trailing Nines
Numeric Boundary: Trailing Zeros
Polygon Z (GeoPackage)
GeoJSON Precision Loss Roundtrip
GeoTIFF Float64 Small
Numeric Boundary: 1e-14
Numeric Boundary: Trailing Nines
Numeric Boundary: Trailing Zeros
Polygon Z (GeoPackage)
GeoJSON Precision Loss Roundtrip
| Case | Category | Format | Geometry |
|---|---|---|---|
| Format-limited Precision Polygon | vector | GeoJSON | Polygon |
| GeoTIFF Float64 Small | raster | GeoTIFF | -- |
| Numeric Boundary: 1e-14 | vector | GeoJSON | Point |
| Numeric Boundary: Trailing Nines | vector | GeoJSON | Point |
| Numeric Boundary: Trailing Zeros | vector | GeoJSON | Point |
| Polygon Z (GeoPackage) | vector | GPKG | Polygon |
| GeoJSON Precision Loss Roundtrip | vector | GeoJSON | Point |