Format-limited Precision Polygon¶
vectorGeoJSONPolygonEPSG:4326tinybundled
A very thin, valid polygon that relies on high coordinate precision to remain non-collapsed. It is valid in GeoJSON, but it is format-limited: precision rounding or driver-specific export constraints can collapse it into an invalid or zero-area geometry.
| Property | Value |
|---|---|
| Case ID | format_limited_precision_polygon |
| Category | vector |
| Format | GeoJSON |
| Geometry type | Polygon |
| CRS | EPSG:4326 |
| Location | Equator at the prime meridian (synthetic) — 0.00°E, 0.00°N → 1.00°E, 0.00°N |
| Test tier | unit |
| Size class | tiny |
| Storage class | bundled |
| Redistributable | yes |
| Loader | geopandas |
| Status | validated |
Use this case¶
import pytest
@pytest.mark.geocase_case("format_limited_precision_polygon")
def test_format_limited_precision_polygon(geocase_case) -> None:
data = geocase_case.load()
assert data is not None
Use GeoCase in your tests¶
Install the complete set of vector, raster, and NetCDF dependencies:
What this case checks¶
Expose workflows that silently reduce coordinate precision and thereby invalidate geometries that are only safe in high-precision formats.
Risk types covered¶
Expected behavior¶
| Assertion | Expected |
|---|---|
expect_loadable |
yes |
expect_valid_geometry |
yes |
expect_crs |
yes |
expected_epsg |
4326 |
expected_geometry_types |
Polygon |
Notes¶
Thin polygon that is valid in high-precision formats but vulnerable to rounding-induced collapse.
Required capabilities¶
loadgeometry-validationbounds-check
Files¶
- Primary:
geometry.geojson - Notes:
notes.md
Source and license¶
- Source: geocase-curated
- License: MIT
Tags¶
format_limited polygon precision rounding valid vector
Related cases¶
- GeoJSON Precision Loss Roundtrip --
precision_loss_geojson_roundtrip - Format-Limited KML Case --
format_limited_kml_case - Numeric Boundary: 1e-14 --
numeric_boundary_1e14 - Numeric Boundary: Trailing Nines --
numeric_boundary_trailing_nines - Numeric Boundary: Trailing Zeros --
numeric_boundary_trailing_zeros