Skip to content

LineString FlatGeobuf Baseline

vectorFlatGeobufLineStringEPSG:4326tinybundled

Canonical baseline LineString stored as FlatGeobuf to exercise compact binary line transport.

LineString geometry of linestring_flatgeobuf_baseline, rendered from the case's data
LineString geometry, rendered from the case's actual geometry. Scale is normalized to the viewport and is not comparable between cases.
Property Value
Case ID linestring_flatgeobuf_baseline
Category vector
Format FlatGeobuf
Geometry type LineString
CRS EPSG:4326
Location Patagonia, Southern Andes (synthetic) — 72.50°W, 50.90°S → 71.50°W, 50.60°S
Test tier unit
Size class tiny
Storage class bundled
Redistributable yes
Loader geopandas
Status validated

Use this case

import pytest


@pytest.mark.geocase_case("linestring_flatgeobuf_baseline")
def test_linestring_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:

pip install "geocase[all]"

View GeoCase on PyPI.

What this case checks

Provide a canonical line encoded as FlatGeobuf so binary driver-backed line loading can be compared against text and container baselines.

Risk types covered

Expected behavior

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

Notes

Purpose

Canonical baseline LineString stored in FlatGeobuf for cross-format line coverage.

Data

  • Geometry: LINESTRING (10 50, 10.5 50.3, 11 50.1)
  • Attributes: id = 1, name = linestring_flatgeobuf_baseline
  • Feature count: 1

Validation

  • Geometry type: LineString
  • CRS: EPSG:4326
  • Geometry equals simple_valid_linestring under shapely.normalize, which is how tests/unit/test_cross_format_canonical.py compares 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 by shapefile_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_linestring), and generate_vector_fixtures.py --check fails on any drift.

Required capabilities

  • load
  • geometry-validation
  • bounds-check

Files

Browse this case on GitHub

Source and license

  • Source: geocase-curated
  • License: MIT

Tags

baseline cross_format_canonical flatgeobuf format_comparison linestring valid vector