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.
| 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:
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¶
loadbounds-checkgeometry-validation
Files¶
- Primary:
geometry.geojson - Notes:
notes.md
Source and license¶
- Source: geocase-curated
- License: MIT
Tags¶
baseline polygon valid vector
Related cases¶
- Polygon CSV WKT Baseline --
polygon_csv_wkt_baseline - Polygon FlatGeobuf Baseline --
polygon_flatgeobuf_baseline - Polygon GeoPackage Baseline --
polygon_geopackage_baseline - Polygon GML Baseline --
polygon_gml_baseline - Polygon KML Baseline --
polygon_kml_baseline