Skip to content

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.

Polygon geometry of format_limited_precision_polygon, rendered from the case's data
Polygon geometry, rendered from the case's actual geometry. Scale is normalized to the viewport and is not comparable between cases.
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:

pip install "geocase[all]"

View GeoCase on PyPI.

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

  • load
  • geometry-validation
  • bounds-check

Files

Browse this case on GitHub

Source and license

  • Source: geocase-curated
  • License: MIT

Tags

format_limited polygon precision rounding valid vector