Skip to content

Disjoint Polygons

vectorGeoJSONPolygonEPSG:4326tinybundled

Two separated polygon features in the same vector dataset. Useful for dissolve and intersection tests that should preserve non-overlapping parts.

Polygon geometry of disjoint_polygons, 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 disjoint_polygons
Category vector
Format GeoJSON
Geometry type Polygon
CRS EPSG:4326
Location Near the origin (synthetic, no real-world location) — 20.00°E, 0.00°N → 24.00°E, 1.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("disjoint_polygons")
def test_disjoint_polygons(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 disjoint features remain separate and do not intersect.

Risk types covered

  • geometry/false_positive_intersection
  • geometry/overaggressive_dissolve

Expected behavior

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

Notes

Two separated polygons for dissolve and intersection tests that should remain non-overlapping.

Required capabilities

  • load
  • geometry-validation
  • topology-check

Files

Browse this case on GitHub

Source and license

  • Source: geocase-curated
  • License: MIT

Tags

multipart polygon topology vector