Polygon FlatGeobuf Baseline¶
vectorFlatGeobufPolygonEPSG:4326tinybundled
Canonical baseline polygon stored as FlatGeobuf to exercise compact spatial indexing and binary feature transport.
| Property | Value |
|---|---|
| Case ID | polygon_flatgeobuf_baseline |
| Category | vector |
| Format | FlatGeobuf |
| 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("polygon_flatgeobuf_baseline")
def test_polygon_flatgeobuf_baseline(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¶
Provide a canonical polygon encoded as FlatGeobuf so binary driver-backed loading can be compared against the GeoJSON baseline.
Risk types covered¶
Expected behavior¶
| Assertion | Expected |
|---|---|
expect_loadable |
yes |
expect_valid_geometry |
yes |
expect_crs |
yes |
expected_epsg |
4326 |
expected_geometry_types |
Polygon |
Notes¶
Purpose¶
Canonical baseline polygon stored in FlatGeobuf for cross-format driver coverage.
Data¶
- Geometry:
POLYGON ((10 50, 11 50, 11 51, 10 51, 10 50)) - Attributes:
id= 1,name=polygon_flatgeobuf_baseline - Feature count: 1
Validation¶
- Geometry type:
Polygon - CRS:
EPSG:4326 - Geometry equals
simple_valid_polygonundershapely.normalize, which is howtests/unit/test_cross_format_canonical.pycompares them. The comparison is winding-insensitive by necessity: the Shapefile specification mandates the opposite ring orientation from RFC 7946, and OGR rewrites winding on write. Orientation itself is asserted byshapefile_ring_orientation.
Generation¶
Generated by scripts/generate_vector_fixtures.py — do not hand-edit. The
geometry is derived from params.canonical_source_case_id
(simple_valid_polygon), and generate_vector_fixtures.py --check fails on any drift.
Required capabilities¶
loadgeometry-validationbounds-check
Files¶
- Primary:
polygon.fgb - Notes:
notes.md
Source and license¶
- Source: geocase-curated
- License: MIT
Tags¶
baseline cross_format_canonical flatgeobuf format_comparison polygon valid vector
Related cases¶
- LineString FlatGeobuf Baseline --
linestring_flatgeobuf_baseline - Point FlatGeobuf Baseline --
point_flatgeobuf_baseline - MultiLineString FlatGeobuf Baseline --
multilinestring_flatgeobuf_baseline - MultiPoint FlatGeobuf Baseline --
multipoint_flatgeobuf_baseline - MultiPolygon FlatGeobuf Baseline --
multipolygon_flatgeobuf_baseline