GeometryCollection Mixed Valid¶
A valid GeometryCollection fixture containing a point, line, and polygon to support mixed-geometry loader behavior checks.
| 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:
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.
Notes¶
Valid mixed GeometryCollection case for loader and metadata coverage.
Required capabilities¶
loadgeometry-validationselector-filtering
Files¶
- Primary:
geometry.geojson - Notes:
notes.md
Source and license¶
- Source: geocase-curated
- License: MIT
Tags¶
geometrycollection mixed_geometry valid vector
Related cases¶
- Spike Invalid Polygon --
spike_invalid_polygon - Dense Ring Polygon (4096 vertices) --
dense_ring_polygon_4k - Dense Ring Polygon (4096 vertices, GeoPackage) --
dense_ring_polygon_4k_gpkg - Equator Crossing Line --
equator_crossing_line - Format-Limited KML Case --
format_limited_kml_case