Skip to content

GeometryCollection Mixed Valid

vectorGeoJSONGeometryCollectionEPSG:4326tinybundled

A valid GeometryCollection fixture containing a point, line, and polygon to support mixed-geometry loader behavior checks.

GeometryCollection geometry of geometrycollection_mixed_valid, rendered from the case's data
GeometryCollection geometry, rendered from the case's actual geometry. Scale is normalized to the viewport and is not comparable between cases.
Property Value
Case ID geometrycollection_mixed_valid
Category vector
Format GeoJSON
Geometry type GeometryCollection
CRS EPSG:4326
Location Central Europe (synthetic) — 10.00°E, 50.00°N → 11.00°E, 50.60°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("geometrycollection_mixed_valid")
def test_geometrycollection_mixed_valid(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

Ensure GeometryCollection features can be indexed and loaded without being coerced into a single geometry family.

Risk types covered

Expected behavior

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

Known consumer divergences

Disagreements already investigated on this case. If your reader reproduces one of these, it is catalogued — not a new finding.

geoarrow-pyarrow — geoarrow-pyarrow 0.5

as_geoarrow builds the extension name geoarrow.geometrycollection, which geoarrow's own C core then rejects with errno 22, instead of falling back to WKB as the docstring promises.

Upstream: https://github.com/farzinashouri/geocase/blob/main/docs/plans/38-six-consumer-round-2-and-the-stac-adapter.md

Notes

Valid mixed GeometryCollection case for loader and metadata coverage.

Required capabilities

  • load
  • geometry-validation
  • selector-filtering

Files

Browse this case on GitHub

Source and license

  • Source: geocase-curated
  • License: MIT

Tags

geometrycollection mixed_geometry valid vector