Skip to content

Simple Valid Polygon

vectorGeoJSONPolygonEPSG:4326tinybundled

A straightforward, well-formed polygon with no holes, no self- intersections, and a standard CRS. Serves as the baseline "happy path" for geometry loading and validation.

Polygon geometry of simple_valid_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 simple_valid_polygon
Category vector
Format GeoJSON
Geometry type Polygon
CRS EPSG:4326
Location Central Europe (synthetic) — 10.00°E, 50.00°N → 11.00°E, 51.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("simple_valid_polygon")
def test_simple_valid_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

Confirm that a minimal valid polygon loads without error and passes all standard geometry checks.

Expected behavior

Assertion Expected
expect_loadable yes
expect_valid_geometry yes
expect_crs yes
expected_epsg 4326
expected_geometry_types Polygon

Notes

Purpose

Baseline vector case for the "happy path": valid polygon geometry, no holes, and standard CRS (EPSG:4326).

What to expect

  • Loads cleanly with GeoPandas.
  • Geometry validity checks should pass.
  • No interior rings are present.
  • Reprojection (to_crs(...)) should behave normally.

Typical checks

  • assert_valid_geometry(gdf)
  • assert_geometry_type(gdf, "Polygon")
  • assert_no_holes(gdf)
  • assert_epsg(gdf, 4326)

Why this case matters

Use this case to confirm your test harness and pipeline are healthy before running edge-case scenarios.

Required capabilities

  • load
  • bounds-check
  • geometry-validation

Files

Browse this case on GitHub

Source and license

  • Source: geocase-curated
  • License: MIT

Tags

baseline polygon valid vector